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: nodejs#4324
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
chrisJohn404 authored and Michael Scovetta committed Apr 2, 2016
1 parent 5c99fb6 commit 4f29b7c
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 4f29b7c

Please sign in to comment.