doc: fix typo in Buffer.from(string, [encoding])

PR-URL: https://github.com/nodejs/node/pull/15013
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
This commit is contained in:
Michał Wadas 2017-08-24 16:45:26 +02:00 committed by Joyee Cheung
parent 43029da762
commit abced13e29

View File

@ -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