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 <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
addaleax authored and MylesBorins committed Oct 24, 2016
1 parent ecf8f5a commit b401d9b
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 b401d9b

Please sign in to comment.