Permalink
Browse files

doc: fix typo in Buffer.from(string, [encoding])

PR-URL: #15013
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • Loading branch information...
Ginden authored and MylesBorins committed Aug 24, 2017
1 parent 9b9e7b4 commit f1bc168ad56833941d5512bbe2634a2b2cf58f2f
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/buffer.md
@@ -907,7 +907,7 @@ const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');
console.log(buf2.toString());
```
A `TypeError` will be thrown if `str` is not a string.
A `TypeError` will be thrown if `string` is not a string.
### Class Method: Buffer.from(object[, offsetOrEncoding[, length]])
<!-- YAML

0 comments on commit f1bc168

Please sign in to comment.