Skip to content

Commit fe693b7

Browse files
chrisJohn404Myles Borins
authored and
Myles Borins
committed
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 44dbe15 commit fe693b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ defaults to `'utf8'`. The `start` and `end` parameters default to `0` and
598598
buf.toString('utf8',0,5); // outputs: abcde
599599
buf.toString(undefined,0,5); // encoding defaults to 'utf8', outputs abcde
600600

601-
See `buffer.write()` example, above.
601+
See `buf.write()` example, below.
602602

603603

604604
### buf.toJSON()

0 commit comments

Comments
 (0)