Skip to content

Commit d0ba631

Browse files
MapleGuevanlucas
authored andcommitted
doc: fix encoding string in buffer example
PR-URL: #12482 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent a34cccc commit d0ba631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const buf4 = Buffer.from([1, 2, 3]);
4242
const buf5 = Buffer.from('tést');
4343

4444
// Creates a Buffer containing Latin-1 bytes [0x74, 0xe9, 0x73, 0x74].
45-
const buf6 = Buffer.from('tést', 'latin-1');
45+
const buf6 = Buffer.from('tést', 'latin1');
4646
```
4747

4848
## `Buffer.from()`, `Buffer.alloc()`, and `Buffer.allocUnsafe()`

0 commit comments

Comments
 (0)