Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update doc/api/buffer.md
Co-Authored-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
gfx and Trott authored Jun 11, 2019
commit 70271da9a98a2760ee40d2dce918bf23c2876ef4
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -1982,7 +1982,7 @@ This is the same behavior as `buf.subarray()`.

Note that this method is not compatible with the `Uint8Array.prototype.slice()`,
Comment thread
gfx marked this conversation as resolved.
Outdated
which is a superclass of `Buffer`. If a copy of the slice is needed, use
Comment thread
gfx marked this conversation as resolved.
Outdated
`Uint8Array.prototype.slice` directly.
`Uint8Array.prototype.slice()`.

```js
const buf = Buffer.from('buffer');
Expand Down