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