diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 4712957658df78..0301eadd3bebdc 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -907,7 +907,7 @@ const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex'); console.log(buf2.toString()); ``` -A `TypeError` will be thrown if `str` is not a string. +A `TypeError` will be thrown if `string` is not a string. ### Class Method: Buffer.from(object[, offsetOrEncoding[, length]])