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: nodejs#9165
  • Loading branch information
addaleax committed Oct 18, 2016
1 parent 890139f commit ea6bb9f
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 ea6bb9f

Please sign in to comment.