From e20fe535a5a3b25f7c6b93a675c44d940b541197 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 e53cd5c93f5daa..c32060563faa49 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -2529,9 +2529,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])`