From b401d9baad46b5c5262cdac3ada32ef00d227083 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 18 Oct 2016 18:56:48 +0200 Subject: [PATCH] doc: correct metadata of `Buffer.from` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `Buffer.from` was present in `v3.0.0` but didn’t work for any combination of arguments as it was inherited from `Uint8Array`. This corrects the data to contain the version in which Node’s own `Buffer.from` was added, namely `v4.5.0`. Fixes: https://github.com/nodejs/node/issues/9165 PR-URL: https://github.com/nodejs/node/pull/9167 Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- doc/api/buffer.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 5b56a71b58e6b5..7871a788540e3a 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -595,7 +595,7 @@ console.log(bufA.length); ### Class Method: Buffer.from(array) * `array` {Array} @@ -643,7 +643,7 @@ A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer`. ### Class Method: Buffer.from(buffer) * `buffer` {Buffer}