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 <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
  • 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
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.