Skip to content

Commit e20fe53

Browse files
seishuncodebytere
authored andcommitted
doc: update Buffer(size) documentation
It returns zero-filled memory since v8.0.0. PR-URL: #33198 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 27b814c commit e20fe53

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/api/buffer.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -2529,9 +2529,7 @@ changes:
25292529
* `size` {integer} The desired length of the new `Buffer`.
25302530

25312531
See [`Buffer.alloc()`][] and [`Buffer.allocUnsafe()`][]. This variant of the
2532-
constructor is equivalent to [`Buffer.allocUnsafe()`][], although using
2533-
[`Buffer.alloc()`][] is recommended in code paths that are not critical to
2534-
performance.
2532+
constructor is equivalent to [`Buffer.alloc()`][].
25352533

25362534
### `new Buffer(string[, encoding])`
25372535
<!-- YAML

0 commit comments

Comments
 (0)