From 573ac5c71dd10eb66cf01c6ec1a381190bcdc71a 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. --- 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 52e86430ede831..70a0177be7010a 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -2528,9 +2528,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])`