Skip to content

Commit

Permalink
doc: Typo in buffer.markdown referencing buf.write()
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
chrisJohn404 authored and Fishrock123 committed Jan 6, 2016
1 parent 699bf2c commit 5ce6e99
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 5ce6e99

Please sign in to comment.