Skip to content

Commit

Permalink
doc: fix encoding string in buffer example
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
MapleGu authored and evanlucas committed May 2, 2017
1 parent a34cccc commit d0ba631
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()`
Expand Down

0 comments on commit d0ba631

Please sign in to comment.