summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2017-03-30 12:11:58 -0400
committerGitHub <noreply@github.com>2017-03-30 12:11:58 -0400
commit66b3c727762e4bf4909e6d8c5e6312810b384204 (patch)
treeec3feda808251af102997f8b2f12951ed664be7a
parent75cb35760e8a2a7ca7917b865ec8c975886f9db2 (diff)
parent90ff91a6b77489ca092abee880aa132d77784b99 (diff)
downloadasync-66b3c727762e4bf4909e6d8c5e6312810b384204.tar.gz
Merge pull request #1392 from felixonmars/fix-typo
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;