Skip to content

Commit b10bc31

Browse files
Michał WadasMylesBorins
Michał Wadas
authored andcommitted
doc: fix typo in Buffer.from(string, [encoding])
PR-URL: #15013 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Joyee Cheung <[email protected]>
1 parent 29de000 commit b10bc31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
833833
console.log(buf2.toString());
834834
```
835835

836-
A `TypeError` will be thrown if `str` is not a string.
836+
A `TypeError` will be thrown if `string` is not a string.
837837

838838
### Class Method: Buffer.isBuffer(obj)
839839
<!-- YAML

0 commit comments

Comments
 (0)