summaryrefslogtreecommitdiff
path: root/doc/api/buffer.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-01-19 20:45:06 +0200
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2019-01-20 17:02:18 +0200
commit17c6b1d4f78d6050642d3cd3723c08564e67dcd5 (patch)
tree8b48d1c42d3c56f9bd1be5137daae1ceaf9c2a19 /doc/api/buffer.md
parentaaa7547e7779520428a2e48b728a5993b00c330a (diff)
downloadandroid-node-v8-17c6b1d4f78d6050642d3cd3723c08564e67dcd5.tar.gz
android-node-v8-17c6b1d4f78d6050642d3cd3723c08564e67dcd5.tar.bz2
android-node-v8-17c6b1d4f78d6050642d3cd3723c08564e67dcd5.zip
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>
Diffstat (limited to 'doc/api/buffer.md')
-rw-r--r--doc/api/buffer.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md
index 49766866dc..a8e8dd3766 100644
--- a/doc/api/buffer.md
+++ b/doc/api/buffer.md
@@ -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: