From 51f2dfcac6e976e7f2e50d984424ff318bc1f31a Mon Sep 17 00:00:00 2001 From: Waleed Ashraf Date: Thu, 21 Dec 2017 02:31:54 +0500 Subject: [PATCH] doc: removed extra explanation in api/buffer.md PR-URL: https://github.com/nodejs/node/pull/17796 Reviewed-By: Anatoli Papirovski Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Jon Moss Reviewed-By: Ruben Bridgewater --- doc/api/buffer.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 82f809289352ef..4290ae335c3570 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1043,13 +1043,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` @@ -1119,9 +1117,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`