diff options
author | Saurav Azad <3856934+sauravazad@users.noreply.github.com> | 2021-08-06 04:21:22 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 15:51:22 -0700 |
commit | c243b0e9e4a21f50b573820cf0d9059524833f50 (patch) | |
tree | 6a919f017a17409487b6bdedb04553377c0bc2d1 /lib | |
parent | e02c3c6396bf7c840e2420742648d15b3bfcd849 (diff) | |
download | async-c243b0e9e4a21f50b573820cf0d9059524833f50.tar.gz |
fixing the grammar in documentation (#1756)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/reduce.js | 3 | ||||
-rw-r--r-- | lib/reduceRight.js | 2 |
2 files changed, 2 insertions, 3 deletions
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 |