Skip to content

Commit

Permalink
doc: correct my wrong note about buf.fill()
Browse files Browse the repository at this point in the history
PR-URL: #25585
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
  • Loading branch information
vsemozhetbyt committed Jan 20, 2019
1 parent aaa7547 commit 17c6b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,7 @@ console.log(b.toString());

`value` is coerced to a `uint32` value if it is not a string, `Buffer`, or
integer. If the resulting integer is greater than `255` (decimal), `buf` will be
filled with `0`.
filled with `value & 255`.

If the final write of a `fill()` operation falls on a multi-byte character,
then only the bytes of that character that fit into `buf` are written:
Expand Down

0 comments on commit 17c6b1d

Please sign in to comment.