Skip to content

Commit c564920

Browse files
committed
buffer: lint
1 parent c775d41 commit c564920

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

doc/api/buffer.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,9 @@ added: REPLACEME
937937
(exclusive). **Default:** `source.byteLength`.
938938
* Returns: {integer} The number of bytes copied.
939939

940-
Copies data from `source` to `target`. This is a method that can copy data between different types of binary data structures, including `Buffer`, `TypedArray`, `DataView`, `ArrayBuffer`, and `SharedArrayBuffer` instances.
940+
Copies data from `source` to `target`. This is a method that can copy data
941+
between different types of binary data structures, including `Buffer`,
942+
`TypedArray`, `DataView`, `ArrayBuffer`, and `SharedArrayBuffer` instances.
941943

942944
```mjs
943945
import { Buffer } from 'node:buffer';

src/node_buffer.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,9 @@ void StaticCopy(const FunctionCallbackInfo<Value>& args) {
14841484
}
14851485

14861486
if (source_start > source_byte_length || source_end > source_byte_length) {
1487-
return THROW_ERR_OUT_OF_RANGE(env, "sourceStart or sourceEnd is out of bounds");
1487+
return THROW_ERR_OUT_OF_RANGE(
1488+
env,
1489+
"sourceStart or sourceEnd is out of bounds");
14881490
}
14891491

14901492
if (source_start >= source_end) {

0 commit comments

Comments
 (0)