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 <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Nikolai Vavilov authored and Shelley Vohr committed 2020-06-06 22:22:37 -07:00
1 parent 8b44be9b26
commit 903862089b
1 file changed
+1 -3
+1 -3
View File
@@ -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])`
<!-- YAML