mirror of
https://github.com/nodejs/node.git
synced 2024-11-30 15:30:56 +01:00
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: https://github.com/nodejs/node/pull/4324 Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
4637168f81
commit
f2bddc14f6
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user