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:
Vse Mozhet Byt authored and Anna Henningsen committed 2019-01-23 19:31:58 +01:00
1 parent 58952a1a96
commit 0c046e8e68
1 file changed
+1 -1
+1 -1
View File
@@ -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: