summaryrefslogtreecommitdiff
path: root/doc/api/buffer.md
diff options
context:
space:
mode:
authorWaleed Ashraf <waleedashraf@outlook.com>2017-12-21 02:31:54 +0500
committerJon Moss <me@jonathanmoss.me>2017-12-22 12:59:44 -0500
commit0b0a4fc8ecdab89074630bd814f26780a4cf9eda (patch)
tree2f036a61cbbcca2dbe6f572388b7ca7ca2e75d34 /doc/api/buffer.md
parentb5d415311bc98d9d7c3f0bb0a22250899e33ac77 (diff)
downloadandroid-node-v8-0b0a4fc8ecdab89074630bd814f26780a4cf9eda.tar.gz
android-node-v8-0b0a4fc8ecdab89074630bd814f26780a4cf9eda.tar.bz2
android-node-v8-0b0a4fc8ecdab89074630bd814f26780a4cf9eda.zip
doc: removed extra explanation in api/buffer.md
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/buffer.md')
-rw-r--r--doc/api/buffer.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/doc/api/buffer.md b/doc/api/buffer.md
index e0723f4f66..07404a043b 100644
--- a/doc/api/buffer.md
+++ b/doc/api/buffer.md
@@ -1047,13 +1047,11 @@ changes:
* `targetStart` {integer} The offset within `target` at which to begin
comparison. **Default:** `0`
* `targetEnd` {integer} The offset with `target` at which to end comparison
- (not inclusive). Ignored when `targetStart` is `undefined`.
- **Default:** `target.length`
+ (not inclusive). **Default:** `target.length`
* `sourceStart` {integer} The offset within `buf` at which to begin comparison.
- Ignored when `targetStart` is `undefined`. **Default:** `0`
+ **Default:** `0`
* `sourceEnd` {integer} The offset within `buf` at which to end comparison
- (not inclusive). Ignored when `targetStart` is `undefined`.
- **Default:** [`buf.length`]
+ (not inclusive). **Default:** [`buf.length`]
* Returns: {integer}
Compares `buf` with `target` and returns a number indicating whether `buf`
@@ -1123,9 +1121,9 @@ added: v0.1.90
* `targetStart` {integer} The offset within `target` at which to begin
copying to. **Default:** `0`
* `sourceStart` {integer} The offset within `buf` at which to begin copying from.
- Ignored when `targetStart` is `undefined`. **Default:** `0`
+ **Default:** `0`
* `sourceEnd` {integer} The offset within `buf` at which to stop copying (not
- inclusive). Ignored when `sourceStart` is `undefined`. **Default:** [`buf.length`]
+ inclusive). **Default:** [`buf.length`]
* Returns: {integer} The number of bytes copied.
Copies data from a region of `buf` to a region in `target` even if the `target`