summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2016-09-09 13:40:07 -0400
committerDave Henderson <dhenderson@gmail.com>2016-09-09 13:40:31 -0400
commit18b75161ddaa65f2e715431ae768a225f3be9e41 (patch)
tree9ebdc58b7e4f781c69ec08e6039204052779483f
parentf49d94feeb0171f48ad517ae5db599abc8dc5c29 (diff)
downloadasync-18b75161ddaa65f2e715431ae768a225f3be9e41.tar.gz
Fixing inconsistency in whilst jsdoc
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
-rw-r--r--lib/whilst.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/whilst.js b/lib/whilst.js
index 31c5c82..f3bd582 100644
--- a/lib/whilst.js
+++ b/lib/whilst.js
@@ -4,7 +4,7 @@ import rest from 'lodash/_baseRest';
import onlyOnce from './internal/onlyOnce';
/**
- * Repeatedly call `fn`, while `test` returns `true`. Calls `callback` when
+ * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when
* stopped, or an error occurs.
*
* @name whilst
@@ -13,13 +13,13 @@ import onlyOnce from './internal/onlyOnce';
* @method
* @category Control Flow
* @param {Function} test - synchronous truth test to perform before each
- * execution of `fn`. Invoked with ().
+ * execution of `iteratee`. Invoked with ().
* @param {Function} iteratee - A function which is called each time `test` passes.
* The function is passed a `callback(err)`, which must be called once it has
* 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 and any arguments passed to the final `fn`'s
+ * function has failed and repeated execution of `iteratee` has stopped. `callback`
+ * will be passed an error and any arguments passed to the final `iteratee`'s
* callback. Invoked with (err, [results]);
* @returns undefined
* @example