Skip to content

Commit 9038620

Browse files
seishuncodebytere
authored andcommittedJun 7, 2020
doc: update Buffer(size) documentation
It returns zero-filled memory since v8.0.0. PR-URL: #33198 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent 8b44be9 commit 9038620

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
@@ -2521,9 +2521,7 @@ changes:
25212521
* `size` {integer} The desired length of the new `Buffer`.
25222522

25232523
See [`Buffer.alloc()`][] and [`Buffer.allocUnsafe()`][]. This variant of the
2524-
constructor is equivalent to [`Buffer.allocUnsafe()`][], although using
2525-
[`Buffer.alloc()`][] is recommended in code paths that are not critical to
2526-
performance.
2524+
constructor is equivalent to [`Buffer.alloc()`][].
25272525

25282526
### `new Buffer(string[, encoding])`
25292527
<!-- YAML

0 commit comments

Comments
 (0)
Please sign in to comment.