summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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