mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: correct my wrong note about buf.fill()
PR-URL: https://github.com/nodejs/node/pull/25585 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
This commit is contained in:
1 parent
58952a1a96
commit
0c046e8e68
1 file changed
+1
-1
+1
-1
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user