Skip to content

Commit

Permalink
doc: correct metadata of Buffer.from
Browse files Browse the repository at this point in the history
`Buffer.from` was present in `v3.0.0` but didn’t work for any
combination of arguments as it was inherited from `Uint8Array`.

This corrects the data to contain the version in which Node’s
own `Buffer.from` was added, namely `v4.5.0`.

Fixes: #9165
PR-URL: #9167
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
addaleax authored and MylesBorins committed Oct 26, 2016
1 parent d5f03db commit 3a43b0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ console.log(bufA.length);

### Class Method: Buffer.from(array)
<!-- YAML
added: v3.0.0
added: v4.5.0
-->

* `array` {Array}
Expand Down Expand Up @@ -643,7 +643,7 @@ A `TypeError` will be thrown if `arrayBuffer` is not an `ArrayBuffer`.

### Class Method: Buffer.from(buffer)
<!-- YAML
added: v3.0.0
added: v4.5.0
-->

* `buffer` {Buffer}
Expand Down

0 comments on commit 3a43b0d

Please sign in to comment.