Skip to content

Commit 3a43b0d

Browse files
addaleaxMylesBorins
authored andcommitted
doc: correct metadata of Buffer.from
`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]>
1 parent d5f03db commit 3a43b0d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/buffer.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ console.log(bufA.length);
595595

596596
### Class Method: Buffer.from(array)
597597
<!-- YAML
598-
added: v3.0.0
598+
added: v4.5.0
599599
-->
600600

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

644644
### Class Method: Buffer.from(buffer)
645645
<!-- YAML
646-
added: v3.0.0
646+
added: v4.5.0
647647
-->
648648

649649
* `buffer` {Buffer}

0 commit comments

Comments
 (0)