Browse Source

doc: fix encoding string in buffer example

PR-URL: https://github.com/nodejs/node/pull/12482
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
v7.x
MapleUncle 8 years ago
committed by Evan Lucas
parent
commit
d0ba631efa
  1. 2
      doc/api/buffer.md

2
doc/api/buffer.md

@ -42,7 +42,7 @@ const buf4 = Buffer.from([1, 2, 3]);
const buf5 = Buffer.from('tést');
// Creates a Buffer containing Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
const buf6 = Buffer.from('tést', 'latin-1');
const buf6 = Buffer.from('tést', 'latin1');
```
## `Buffer.from()`, `Buffer.alloc()`, and `Buffer.allocUnsafe()`

Loading…
Cancel
Save