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 <rtrott@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
seishun authored and codebytere committed Jun 7, 2020
1 parent 8b44be9 commit 9038620
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions doc/api/buffer.md
Expand Up @@ -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
Expand Down

0 comments on commit 9038620

Please sign in to comment.