Skip to content

Commit c243b0e

Browse files
authored
fixing the grammar in documentation (#1756)
1 parent e02c3c6 commit c243b0e

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

docs/v3/scripts/async.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@
16061606
* @param {AsyncFunction} iteratee - A function applied to each item in the
16071607
* array to produce the next step in the reduction.
16081608
* The `iteratee` should complete with the next state of the reduction.
1609-
* If the iteratee complete with an error, the reduction is stopped and the
1609+
* If the iteratee completes with an error, the reduction is stopped and the
16101610
* main `callback` is immediately called with the error.
16111611
* Invoked with (memo, item, callback).
16121612
* @param {Function} [callback] - A callback which is called after all the
@@ -3441,7 +3441,7 @@
34413441
* @param {AsyncFunction} iteratee - A function applied to each item in the
34423442
* array to produce the next step in the reduction.
34433443
* The `iteratee` should complete with the next state of the reduction.
3444-
* If the iteratee complete with an error, the reduction is stopped and the
3444+
* If the iteratee completes with an error, the reduction is stopped and the
34453445
* main `callback` is immediately called with the error.
34463446
* Invoked with (memo, item, callback).
34473447
* @param {Function} [callback] - A callback which is called after all the

lib/reduce.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import awaitify from './internal/awaitify'
2626
* @param {AsyncFunction} iteratee - A function applied to each item in the
2727
* array to produce the next step in the reduction.
2828
* The `iteratee` should complete with the next state of the reduction.
29-
* If the iteratee complete with an error, the reduction is stopped and the
29+
* If the iteratee completes with an error, the reduction is stopped and the
3030
* main `callback` is immediately called with the error.
3131
* Invoked with (memo, item, callback).
3232
* @param {Function} [callback] - A callback which is called after all the
@@ -55,4 +55,3 @@ function reduce(coll, memo, iteratee, callback) {
5555
}, err => callback(err, memo));
5656
}
5757
export default awaitify(reduce, 4)
58-

lib/reduceRight.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import reduce from './reduce';
1515
* @param {AsyncFunction} iteratee - A function applied to each item in the
1616
* array to produce the next step in the reduction.
1717
* The `iteratee` should complete with the next state of the reduction.
18-
* If the iteratee complete with an error, the reduction is stopped and the
18+
* If the iteratee completes with an error, the reduction is stopped and the
1919
* main `callback` is immediately called with the error.
2020
* Invoked with (memo, item, callback).
2121
* @param {Function} [callback] - A callback which is called after all the

0 commit comments

Comments
 (0)