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 MylesBorins committed Sep 20, 2017
1 parent 29de000 commit b10bc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Expand Up @@ -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
Expand Down

0 comments on commit b10bc31

Please sign in to comment.