Skip to content

Commit

Permalink
fixing the grammar in documentation (#1756)
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravazad committed Aug 5, 2021
1 parent e02c3c6 commit c243b0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/v3/scripts/async.js
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions lib/reduce.js
Expand Up @@ -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
Expand Down Expand Up @@ -55,4 +55,3 @@ function reduce(coll, memo, iteratee, callback) {
}, err => callback(err, memo));
}
export default awaitify(reduce, 4)

2 changes: 1 addition & 1 deletion lib/reduceRight.js
Expand Up @@ -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
Expand Down

0 comments on commit c243b0e

Please sign in to comment.