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 fe693b7

Browse filesBrowse files
chrisJohn404Myles Borins
authored andcommitted
doc: Typo in buffer.markdown referencing buf.write()
The buffer's write function is documented below the buf.toString function and all of the docs reference "buf" instead of "buffer". PR-URL: #4324 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 44dbe15 commit fe693b7
Copy full SHA for fe693b7

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.markdown‎

Copy file name to clipboardExpand all lines: doc/api/buffer.markdown
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ defaults to `'utf8'`. The `start` and `end` parameters default to `0` and
598598
buf.toString('utf8',0,5); // outputs: abcde
599599
buf.toString(undefined,0,5); // encoding defaults to 'utf8', outputs abcde
600600

601-
See `buffer.write()` example, above.
601+
See `buf.write()` example, below.
602602

603603

604604
### buf.toJSON()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.