doc: fix typo in Buffer.from(string, [encoding]) · nodejs/node@b10bc31

Original file line numberDiff line numberDiff line change

@@ -833,7 +833,7 @@ const buf2 = Buffer.from('7468697320697320612074c3a97374', 'hex');

833833

console.log(buf2.toString());

834834

```

835835
836-

A `TypeError` will be thrown if `str` is not a string.

836+

A `TypeError` will be thrown if `string` is not a string.

837837
838838

### Class Method: Buffer.isBuffer(obj)

839839

<!-- YAML