Skip to content

Commit f1bc168

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 9b9e7b4 commit f1bc168

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
@@ -907,7 +907,7 @@ const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
907907
console.log(buf2.toString());
908908
```
909909

910-
A `TypeError` will be thrown if `str` is not a string.
910+
A `TypeError` will be thrown if `string` is not a string.
911911

912912
### Class Method: Buffer.from(object[, offsetOrEncoding[, length]])
913913
<!-- YAML

0 commit comments

Comments
 (0)