summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2017-07-16 17:44:38 -0700
committerAlexander Early <alexander.early@gmail.com>2017-07-16 17:44:38 -0700
commit0040c54061bb6f4a083dd7d13ca28265644268ff (patch)
treeda74b4cc24776ca98538c0b28e0e87569c92e445
parent4c15dd78be67d1d81c44e6420c6cc41feac5408b (diff)
downloadasync-0040c54061bb6f4a083dd7d13ca28265644268ff.tar.gz
clarify retry vs retryable in docs. closes #1450
-rw-r--r--lib/retry.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/retry.js b/lib/retry.js
index bd60644..391a4fa 100644
--- a/lib/retry.js
+++ b/lib/retry.js
@@ -76,8 +76,8 @@ import wrapAsync from './internal/wrapAsync';
* // do something with the result
* });
*
- * // It can also be embedded within other control flow functions to retry
- * // individual methods that are not as reliable, like this:
+ * // to retry individual methods that are not as reliable within other
+ * // control flow functions, use the `retryable` wrapper:
* async.auto({
* users: api.getUsers.bind(api),
* payments: async.retryable(3, api.getPayments.bind(api))