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 29de000 commit b10bc31030b1f28fe62d498dbc21c17e1742303e
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/buffer.md
View
@@ -833,7 +833,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.isBuffer(obj)
<!-- YAML

0 comments on commit b10bc31

Please sign in to comment.