From abced13e29cdf6df2a0d602af4c6c04f1e88a412 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 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]])