Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Closed
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/documentation/0051-node-buffers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ let bufcopy = Buffer.alloc(4) //allocate 4 bytes
buf.copy(bufcopy)
```

By default you copy the whole buffer. 3 more parameters let you define the target buffer starting position to copy to, the source buffer starting position to copy from, and the new buffer length:
By default you copy the whole buffer. 3 more parameters let you define the target buffer starting position to copy to, the source buffer starting position to copy from, and the source buffer position to stop copying (not inclusive):

```js
const buf = Buffer.from('Hey!')
Expand Down