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: Anna Henningsen <github@addaleax.net>
  • Loading branch information
gfx and addaleax authored Jun 10, 2019
commit 07e7c7dd4632dab9b14011dca21cfc6ffc05595a
4 changes: 3 additions & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -1977,7 +1977,9 @@ offset and cropped by the `start` and `end` indices.

This is the same behavior as `buf.subarray()`.

Note that this method is not compatible with the `Uint8Array#slice()`, which is a superclass of `Buffer`. If a copy of slice is needed, use `Uint8Array.prototype.slice` directly.
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.
Comment thread
gfx marked this conversation as resolved.
Outdated

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