Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5fa4170

Browse filesBrowse files
MapleGuMylesBorins
authored andcommitted
doc: fix encoding string in buffer example
PR-URL: #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>
1 parent 384fa17 commit 5fa4170
Copy full SHA for 5fa4170

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/buffer.md‎

Copy file name to clipboardExpand all lines: doc/api/buffer.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.