From 903862089ba080a3fd0f0fb824cbebcd7a9d6bc8 Mon Sep 17 00:00:00 2001 From: Nikolai Vavilov Date: Fri, 1 May 2020 17:00:00 +0300 Subject: [PATCH] doc: update Buffer(size) documentation It returns zero-filled memory since v8.0.0. PR-URL: https://github.com/nodejs/node/pull/33198 Reviewed-By: Rich Trott Reviewed-By: Ruben Bridgewater --- doc/api/buffer.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index ab90ddf353f6db..3b4c8432e6e971 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -2521,9 +2521,7 @@ changes: * `size` {integer} The desired length of the new `Buffer`. See [`Buffer.alloc()`][] and [`Buffer.allocUnsafe()`][]. This variant of the -constructor is equivalent to [`Buffer.allocUnsafe()`][], although using -[`Buffer.alloc()`][] is recommended in code paths that are not critical to -performance. +constructor is equivalent to [`Buffer.alloc()`][]. ### `new Buffer(string[, encoding])`