Skip to content

Commit 0b0a4fc

Browse files
WaleedAshrafmaclover7
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 b5d4153 commit 0b0a4fc

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
@@ -1047,13 +1047,11 @@ changes:
10471047
* `targetStart` {integer} The offset within `target` at which to begin
10481048
comparison. **Default:** `0`
10491049
* `targetEnd` {integer} The offset with `target` at which to end comparison
1050-
(not inclusive). Ignored when `targetStart` is `undefined`.
1051-
**Default:** `target.length`
1050+
(not inclusive). **Default:** `target.length`
10521051
* `sourceStart` {integer} The offset within `buf` at which to begin comparison.
1053-
Ignored when `targetStart` is `undefined`. **Default:** `0`
1052+
**Default:** `0`
10541053
* `sourceEnd` {integer} The offset within `buf` at which to end comparison
1055-
(not inclusive). Ignored when `targetStart` is `undefined`.
1056-
**Default:** [`buf.length`]
1054+
(not inclusive). **Default:** [`buf.length`]
10571055
* Returns: {integer}
10581056

10591057
Compares `buf` with `target` and returns a number indicating whether `buf`
@@ -1123,9 +1121,9 @@ added: v0.1.90
11231121
* `targetStart` {integer} The offset within `target` at which to begin
11241122
copying to. **Default:** `0`
11251123
* `sourceStart` {integer} The offset within `buf` at which to begin copying from.
1126-
Ignored when `targetStart` is `undefined`. **Default:** `0`
1124+
**Default:** `0`
11271125
* `sourceEnd` {integer} The offset within `buf` at which to stop copying (not
1128-
inclusive). Ignored when `sourceStart` is `undefined`. **Default:** [`buf.length`]
1126+
inclusive). **Default:** [`buf.length`]
11291127
* Returns: {integer} The number of bytes copied.
11301128

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

0 commit comments

Comments
 (0)