mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
8b44be9b26
commit
903862089b
1 file changed
+1
-3
+1
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user