From b10bc31030b1f28fe62d498dbc21c17e1742303e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wadas?= Date: Thu, 24 Aug 2017 16:45:26 +0200 Subject: [PATCH] doc: fix typo in Buffer.from(string, [encoding]) PR-URL: https://github.com/nodejs/node/pull/15013 Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Joyee Cheung --- doc/api/buffer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 69e800ae09e761..1f8e8b5becef62 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -833,7 +833,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.isBuffer(obj)