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 joyeecheung committed Aug 24, 2017
1 parent 43029da commit abced13
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 abced13

Please sign in to comment.