Skip to content

Commit 6994559

Browse files
WaleedAshrafMylesBorins
authored andcommitted
doc: removed extra explanation in api/buffer.md
PR-URL: #17796 Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
1 parent d387c17 commit 6994559

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

doc/api/buffer.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -1043,13 +1043,11 @@ changes:
10431043
* `targetStart` {integer} The offset within `target` at which to begin
10441044
comparison. **Default:** `0`
10451045
* `targetEnd` {integer} The offset with `target` at which to end comparison
1046-
(not inclusive). Ignored when `targetStart` is `undefined`.
1047-
**Default:** `target.length`
1046+
(not inclusive). **Default:** `target.length`
10481047
* `sourceStart` {integer} The offset within `buf` at which to begin comparison.
1049-
Ignored when `targetStart` is `undefined`. **Default:** `0`
1048+
**Default:** `0`
10501049
* `sourceEnd` {integer} The offset within `buf` at which to end comparison
1051-
(not inclusive). Ignored when `targetStart` is `undefined`.
1052-
**Default:** [`buf.length`]
1050+
(not inclusive). **Default:** [`buf.length`]
10531051
* Returns: {integer}
10541052

10551053
Compares `buf` with `target` and returns a number indicating whether `buf`
@@ -1119,9 +1117,9 @@ added: v0.1.90
11191117
* `targetStart` {integer} The offset within `target` at which to begin
11201118
copying to. **Default:** `0`
11211119
* `sourceStart` {integer} The offset within `buf` at which to begin copying from.
1122-
Ignored when `targetStart` is `undefined`. **Default:** `0`
1120+
**Default:** `0`
11231121
* `sourceEnd` {integer} The offset within `buf` at which to stop copying (not
1124-
inclusive). Ignored when `sourceStart` is `undefined`. **Default:** [`buf.length`]
1122+
inclusive). **Default:** [`buf.length`]
11251123
* Returns: {integer} The number of bytes copied.
11261124

11271125
Copies data from a region of `buf` to a region in `target` even if the `target`

0 commit comments

Comments
 (0)