Skip to content

Commit

Permalink
doc: update Buffer(size) documentation
Browse files Browse the repository at this point in the history
It returns zero-filled memory since v8.0.0.

PR-URL: #33198
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
  • Loading branch information
seishun authored and codebytere committed May 11, 2020
1 parent 27b814c commit e20fe53
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2529,9 +2529,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
Expand Down

0 comments on commit e20fe53

Please sign in to comment.