diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-02-22 00:14:30 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2017-02-24 01:59:18 +0100 |
commit | cba1020531119bd93cd10fc5ee019a125f068175 (patch) | |
tree | b9115b6a64fc30cff665ef5917c4214e2e6d1c03 /doc/api/buffer.md | |
parent | c7205ba94197ab98e90e4b867c8a149d434a15c3 (diff) | |
download | android-node-v8-cba1020531119bd93cd10fc5ee019a125f068175.tar.gz android-node-v8-cba1020531119bd93cd10fc5ee019a125f068175.tar.bz2 android-node-v8-cba1020531119bd93cd10fc5ee019a125f068175.zip |
doc,test: args to `buffer.copy` can be Uint8Arrays
This was semi-overlooked in https://github.com/nodejs/node/pull/10236
because it always worked and didn’t need additional changes.
Ref: https://github.com/nodejs/node/pull/10236
PR-URL: https://github.com/nodejs/node/pull/11486
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@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 56545e3cb1..4efbd93599 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -977,7 +977,7 @@ A `RangeError` will be thrown if: `targetStart < 0`, `sourceStart < 0`, added: v0.1.90 --> -* `target` {Buffer} A `Buffer` to copy into. +* `target` {Buffer|Uint8Array} A `Buffer` or [`Uint8Array`] to copy into. * `targetStart` {Integer} The offset within `target` at which to begin copying to. **Default:** `0` * `sourceStart` {Integer} The offset within `buf` at which to begin copying from. |