Skip to content

Commit c775d41

Browse files
committed
buffer: format code
1 parent 23aca2f commit c775d41

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/api/buffer.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,9 +1001,9 @@ Buffer.copy(src, dv, 2);
10011001
console.log(new Uint8Array(targetAB)); // Uint8Array(5) [ 0, 0, 1, 2, 3 ]
10021002
```
10031003

1004-
If `targetStart` is negative or beyond the length of `target`, a [`RangeError`][]
1004+
If `targetStart` is negative or beyond the length of `target`, a \[`RangeError`]\[]
10051005
is thrown. If `sourceStart` is negative or beyond the length of `source`, a
1006-
[`RangeError`][] is thrown. If `sourceEnd` is negative, a [`RangeError`][] is
1006+
\[`RangeError`]\[] is thrown. If `sourceEnd` is negative, a \[`RangeError`]\[] is
10071007
thrown. Values that exceed the respective buffer lengths are clamped to the
10081008
appropriate limits.
10091009

test/parallel/test-buffer-copy-within.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ describe('Buffer.copy', () => {
6262
assert.deepStrictEqual(new Uint8Array(ab), new Uint8Array([1, 2, 1, 2, 3, 4, 5]));
6363
});
6464

65-
test("should handle detached instances", () => {
65+
test('should handle detached instances', () => {
6666
const src = new Uint8Array([5, 6]).buffer;
67-
src.transfer()
67+
src.transfer();
6868
const dst = Buffer.from([0, 0, 0, 0]);
6969

7070
Buffer.copy(src, dst, 1);
7171

7272
assert.deepStrictEqual(dst, Buffer.from([0, 0, 0, 0]));
73-
})
73+
});
7474
});
7575

7676
describe('DataView to Buffer', () => {

0 commit comments

Comments
 (0)