summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Yan <felixonmars@archlinux.org>2017-03-30 22:42:33 +0800
committerFelix Yan <felixonmars@archlinux.org>2017-03-30 22:42:33 +0800
commit90ff91a6b77489ca092abee880aa132d77784b99 (patch)
treeec3feda808251af102997f8b2f12951ed664be7a
parent75cb35760e8a2a7ca7917b865ec8c975886f9db2 (diff)
downloadasync-90ff91a6b77489ca092abee880aa132d77784b99.tar.gz
Fix a typo: occured -> occurred
-rw-r--r--lib/doDuring.js2
-rw-r--r--lib/during.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/doDuring.js b/lib/doDuring.js
index b198d17..6e80f54 100644
--- a/lib/doDuring.js
+++ b/lib/doDuring.js
@@ -21,7 +21,7 @@ import onlyOnce from './internal/onlyOnce';
* non-error args from the previous callback of `fn`.
* @param {Function} [callback] - A callback which is called after the test
* function has failed and repeated execution of `fn` has stopped. `callback`
- * will be passed an error if one occured, otherwise `null`.
+ * will be passed an error if one occurred, otherwise `null`.
*/
export default function doDuring(fn, test, callback) {
callback = onlyOnce(callback || noop);
diff --git a/lib/during.js b/lib/during.js
index 549ad44..376c445 100644
--- a/lib/during.js
+++ b/lib/during.js
@@ -20,7 +20,7 @@ import onlyOnce from './internal/onlyOnce';
* completed with an optional `err` argument. Invoked with (callback).
* @param {Function} [callback] - A callback which is called after the test
* function has failed and repeated execution of `fn` has stopped. `callback`
- * will be passed an error, if one occured, otherwise `null`.
+ * will be passed an error, if one occurred, otherwise `null`.
* @example
*
* var count = 0;