Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
docs: 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".
  • Loading branch information
chrisJohn404 committed Dec 17, 2015
commit 29ebff15333ae40e77cf485764daea5eb13501d5
2 changes: 1 addition & 1 deletion doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ defaults to `'utf8'`. The `start` and `end` parameters default to `0` and
buf.toString('utf8',0,5); // outputs: abcde
buf.toString(undefined,0,5); // encoding defaults to 'utf8', outputs abcde

See `buffer.write()` example, above.
See `buf.write()` example, below.


### buf.toJSON()
Expand Down