Skip to content

Commit 7a63c0c

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 afa407f commit 7a63c0c

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
@@ -906,13 +906,11 @@ added: v0.11.13
906906
* `targetStart` {integer} The offset within `target` at which to begin
907907
comparison. **Default:** `0`
908908
* `targetEnd` {integer} The offset with `target` at which to end comparison
909-
(not inclusive). Ignored when `targetStart` is `undefined`.
910-
**Default:** `target.length`
909+
(not inclusive). **Default:** `target.length`
911910
* `sourceStart` {integer} The offset within `buf` at which to begin comparison.
912-
Ignored when `targetStart` is `undefined`. **Default:** `0`
911+
**Default:** `0`
913912
* `sourceEnd` {integer} The offset within `buf` at which to end comparison
914-
(not inclusive). Ignored when `targetStart` is `undefined`.
915-
**Default:** [`buf.length`]
913+
(not inclusive). **Default:** [`buf.length`]
916914
* Returns: {integer}
917915

918916
Compares `buf` with `target` and returns a number indicating whether `buf`
@@ -982,9 +980,9 @@ added: v0.1.90
982980
* `targetStart` {integer} The offset within `target` at which to begin
983981
copying to. **Default:** `0`
984982
* `sourceStart` {integer} The offset within `buf` at which to begin copying from.
985-
Ignored when `targetStart` is `undefined`. **Default:** `0`
983+
**Default:** `0`
986984
* `sourceEnd` {integer} The offset within `buf` at which to stop copying (not
987-
inclusive). Ignored when `sourceStart` is `undefined`. **Default:** [`buf.length`]
985+
inclusive). **Default:** [`buf.length`]
988986
* Returns: {integer} The number of bytes copied.
989987

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

0 commit comments

Comments
 (0)