summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Azad <3856934+sauravazad@users.noreply.github.com>2021-08-06 04:21:22 +0530
committerGitHub <noreply@github.com>2021-08-05 15:51:22 -0700
commitc243b0e9e4a21f50b573820cf0d9059524833f50 (patch)
tree6a919f017a17409487b6bdedb04553377c0bc2d1
parente02c3c6396bf7c840e2420742648d15b3bfcd849 (diff)
downloadasync-c243b0e9e4a21f50b573820cf0d9059524833f50.tar.gz
fixing the grammar in documentation (#1756)
-rw-r--r--docs/v3/scripts/async.js4
-rw-r--r--lib/reduce.js3
-rw-r--r--lib/reduceRight.js2
3 files changed, 4 insertions, 5 deletions
diff --git a/docs/v3/scripts/async.js b/docs/v3/scripts/async.js
index 6dd3a82..cafb8c9 100644
--- a/docs/v3/scripts/async.js
+++ b/docs/v3/scripts/async.js
@@ -1606,7 +1606,7 @@
* @param {AsyncFunction} iteratee - A function applied to each item in the
* array to produce the next step in the reduction.
* The `iteratee` should complete with the next state of the reduction.
- * If the iteratee complete with an error, the reduction is stopped and the
+ * If the iteratee completes with an error, the reduction is stopped and the
* main `callback` is immediately called with the error.
* Invoked with (memo, item, callback).
* @param {Function} [callback] - A callback which is called after all the
@@ -3441,7 +3441,7 @@
* @param {AsyncFunction} iteratee - A function applied to each item in the
* array to produce the next step in the reduction.
* The `iteratee` should complete with the next state of the reduction.
- * If the iteratee complete with an error, the reduction is stopped and the
+ * If the iteratee completes with an error, the reduction is stopped and the
* main `callback` is immediately called with the error.
* Invoked with (memo, item, callback).
* @param {Function} [callback] - A callback which is called after all the
diff --git a/lib/reduce.js b/lib/reduce.js
index 571bc5a..d13ace0 100644
--- a/lib/reduce.js
+++ b/lib/reduce.js
@@ -26,7 +26,7 @@ import awaitify from './internal/awaitify'
* @param {AsyncFunction} iteratee - A function applied to each item in the
* array to produce the next step in the reduction.
* The `iteratee` should complete with the next state of the reduction.
- * If the iteratee complete with an error, the reduction is stopped and the
+ * If the iteratee completes with an error, the reduction is stopped and the
* main `callback` is immediately called with the error.
* Invoked with (memo, item, callback).
* @param {Function} [callback] - A callback which is called after all the
@@ -55,4 +55,3 @@ function reduce(coll, memo, iteratee, callback) {
}, err => callback(err, memo));
}
export default awaitify(reduce, 4)
-
diff --git a/lib/reduceRight.js b/lib/reduceRight.js
index 994eaf9..83ff31f 100644
--- a/lib/reduceRight.js
+++ b/lib/reduceRight.js
@@ -15,7 +15,7 @@ import reduce from './reduce';
* @param {AsyncFunction} iteratee - A function applied to each item in the
* array to produce the next step in the reduction.
* The `iteratee` should complete with the next state of the reduction.
- * If the iteratee complete with an error, the reduction is stopped and the
+ * If the iteratee completes with an error, the reduction is stopped and the
* main `callback` is immediately called with the error.
* Invoked with (memo, item, callback).
* @param {Function} [callback] - A callback which is called after all the