Skip to content

Commit f2bddc1

Browse files
chrisJohn404jasnell
authored andcommitted
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: #4324 Reviewed-By: James M Snell <[email protected]>
1 parent 4637168 commit f2bddc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ defaults to `'utf8'`. The `start` and `end` parameters default to `0` and
611611
buf.toString('utf8',0,5); // outputs: abcde
612612
buf.toString(undefined,0,5); // encoding defaults to 'utf8', outputs abcde
613613

614-
See `buffer.write()` example, above.
614+
See `buf.write()` example, below.
615615

616616

617617
### buf.toJSON()

0 commit comments

Comments
 (0)