Skip to content

Commit 85c958f

Browse files
committed
doc: remove trailing spaces
1 parent a2526d0 commit 85c958f

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

doc/api/buffer.md

+20-20
Original file line numberDiff line numberDiff line change
@@ -3518,14 +3518,14 @@ console.log(buf.toString());
35183518
### `buf.asciiSlice([start[, end]])`
35193519

35203520
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3521-
* `end` {integer} The byte offset to stop slicing at (not inclusive).
3521+
* `end` {integer} The byte offset to stop slicing at (not inclusive).
35223522
**Default**: `buf.length`.
35233523
* Returns: {string}
35243524

3525-
Decodes buf to a string according ASCII character encoding. `start` and
3525+
Decodes buf to a string according ASCII character encoding. `start` and
35263526
`end` may be passed to decode only a subset of `buf`.
35273527

3528-
In most cases, `buf.toString()` is preferable, especially if encoding is
3528+
In most cases, `buf.toString()` is preferable, especially if encoding is
35293529
variable.
35303530

35313531
```mjs
@@ -3549,11 +3549,11 @@ console.log(buf.asciiSlice(0, 3));
35493549
### `buf.base64Slice([start[, end]])`
35503550

35513551
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3552-
* `end` {integer} The byte offset to stop decoding at (not inclusive).
3552+
* `end` {integer} The byte offset to stop decoding at (not inclusive).
35533553
**Default**: `buf.length`.
35543554
* Returns: {string}
35553555

3556-
Decodes buf to a string according to base64 character encoding. `start` and
3556+
Decodes buf to a string according to base64 character encoding. `start` and
35573557
`end` may be passed to decode only a subset of `buf`.
35583558

35593559
```mjs
@@ -3577,11 +3577,11 @@ console.log(buf.base64Slice(0, 3));
35773577
### `buf.base64urlSlice([start[, end]])`
35783578

35793579
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3580-
* `end` {integer} The byte offset to stop decoding at (not inclusive).
3580+
* `end` {integer} The byte offset to stop decoding at (not inclusive).
35813581
**Default**: `buf.length`.
35823582
* Returns: {string}
35833583

3584-
Decodes buf to a string according to base64url character encoding. `start`
3584+
Decodes buf to a string according to base64url character encoding. `start`
35853585
and `end` may be passed to decode only a subset of `buf`.
35863586

35873587
```mjs
@@ -3605,11 +3605,11 @@ console.log(buf.base64urlSlice(0, 3));
36053605
### `buf.hexSlice([start[, end]])`
36063606

36073607
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3608-
* `end` {integer} The byte offset to stop decoding at (not inclusive).
3608+
* `end` {integer} The byte offset to stop decoding at (not inclusive).
36093609
**Default**: `buf.length`.
36103610
* Returns: {string}
36113611

3612-
Decodes buf to a string according to hex character encoding. `start` and
3612+
Decodes buf to a string according to hex character encoding. `start` and
36133613
`end` may be passed to decode only a subset of `buf`.
36143614

36153615
```mjs
@@ -3633,11 +3633,11 @@ console.log(buf.hexSlice(0, 3));
36333633
### `buf.latin1Slice([start[, end]])`
36343634

36353635
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3636-
* `end` {integer} The byte offset to stop slicing at (not inclusive).
3636+
* `end` {integer} The byte offset to stop slicing at (not inclusive).
36373637
**Default**: `buf.length`.
36383638
* Returns: {string}
36393639

3640-
Decodes buf to a string according to latin1 character encoding. `start` and
3640+
Decodes buf to a string according to latin1 character encoding. `start` and
36413641
`end` may be passed to decode only a subset of `buf`.
36423642

36433643
```mjs
@@ -3661,11 +3661,11 @@ console.log(buf.latin1Slice(0, 3));
36613661
### `buf.ucs2Slice([start[, end]])`
36623662

36633663
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3664-
* `end` {integer} The byte offset to stop slicing at (not inclusive).
3664+
* `end` {integer} The byte offset to stop slicing at (not inclusive).
36653665
**Default**: `buf.length`.
36663666
* Returns: {string}
36673667

3668-
Decodes buf to a string according to UCS-2 character encoding. `start` and
3668+
Decodes buf to a string according to UCS-2 character encoding. `start` and
36693669
`end` may be passed to decode only a subset of `buf`.
36703670

36713671
```mjs
@@ -3689,11 +3689,11 @@ console.log(buf.ucs2Slice(0, 3));
36893689
### `buf.utf8Slice([start[, end]])`
36903690

36913691
* `start` {integer} The byte offset to start slicing at. **Default**: 0.
3692-
* `end` {integer} The byte offset to stop slicing at (not inclusive).
3692+
* `end` {integer} The byte offset to stop slicing at (not inclusive).
36933693
**Default**: `buf.length`.
36943694
* Returns: {string}
36953695

3696-
Decodes buf to a string according to UTF-8 character encoding. `start` and
3696+
Decodes buf to a string according to UTF-8 character encoding. `start` and
36973697
`end` may be passed to decode only a subset of `buf`.
36983698

36993699
```mjs
@@ -3717,7 +3717,7 @@ console.log(buf.utf8Slice(0, 3));
37173717
### `buf.asciiWrite(string[, offset[, length]])`
37183718

37193719
* `string` {string} String to write to `buf`.
3720-
* `offset` {integer} Number of bytes to skip before starting to write
3720+
* `offset` {integer} Number of bytes to skip before starting to write
37213721
`string`. **Default**: 0.
37223722
* `length` {integer} Maximum number of bytes to write. **Default**: `buf.
37233723
length - offset`.
@@ -3749,7 +3749,7 @@ console.log(bytesWritten);
37493749
### `buf.base64Write(string[, offset[, length]])`
37503750

37513751
* `string` {string} String to write to `buf`.
3752-
* `offset` {integer} Number of bytes to skip before starting to write
3752+
* `offset` {integer} Number of bytes to skip before starting to write
37533753
`string`. **Default**: 0.
37543754
* `length` {integer} Maximum number of bytes to write. **Default**: `buf.
37553755
length - offset`.
@@ -3815,7 +3815,7 @@ console.log(bytesWritten);
38153815
### `buf.hexWrite(string[, offset[, length]])`
38163816

38173817
* `string` {string} String to write to `buf`.
3818-
* `offset` {integer} Number of bytes to skip before starting to write
3818+
* `offset` {integer} Number of bytes to skip before starting to write
38193819
`string`. **Default**: 0.
38203820
* `length` {integer} Maximum number of bytes to write. **Default**: `buf.
38213821
length - offset`.
@@ -3849,7 +3849,7 @@ console.log(bytesWritten);
38493849
### `buf.latin1Write(string[, offset[, length]])`
38503850

38513851
* `string` {string} String to write to `buf`.
3852-
* `offset` {integer} Number of bytes to skip before starting to write
3852+
* `offset` {integer} Number of bytes to skip before starting to write
38533853
`string`. **Default**: 0.
38543854
* `length` {integer} Maximum number of bytes to write. **Default**: `buf.
38553855
length - offset`.
@@ -3883,7 +3883,7 @@ console.log(bytesWritten);
38833883
### `buf.utf8Write(string[, offset[, length]])`
38843884

38853885
* `string` {string} String to write to `buf`.
3886-
* `offset` {integer} Number of bytes to skip before starting to write
3886+
* `offset` {integer} Number of bytes to skip before starting to write
38873887
`string`. **Default**: 0.
38883888
* `length` {integer} Maximum number of bytes to write. **Default**: `buf.
38893889
length - offset`.

0 commit comments

Comments
 (0)