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 <jasnell@gmail.com>
  • Loading branch information
chrisJohn404 authored and Myles Borins committed Jan 19, 2016
1 parent 44dbe15 commit fe693b7
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 @@ -598,7 +598,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 fe693b7

Please sign in to comment.