Skip to content

Commit

Permalink
doc: fix typo in Buffer.from(string, [encoding])
Browse files Browse the repository at this point in the history
PR-URL: #15013
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
  • Loading branch information
Michał Wadas authored and MylesBorins committed Sep 12, 2017
1 parent 9b9e7b4 commit f1bc168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f1bc168

Please sign in to comment.