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 <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
  • Loading branch information
vsemozhetbyt authored and MylesBorins committed May 16, 2019
1 parent 2319bc5 commit 13205d5
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 @@ -1237,7 +1237,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 13205d5

Please sign in to comment.