diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-01-19 20:45:06 +0200 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2019-01-20 17:02:18 +0200 |
commit | 17c6b1d4f78d6050642d3cd3723c08564e67dcd5 (patch) | |
tree | 8b48d1c42d3c56f9bd1be5137daae1ceaf9c2a19 /doc/api/buffer.md | |
parent | aaa7547e7779520428a2e48b728a5993b00c330a (diff) | |
download | android-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.md | 2 |
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: |