summaryrefslogtreecommitdiff
path: root/lib/waterfall.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/waterfall.js')
-rw-r--r--lib/waterfall.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/waterfall.js b/lib/waterfall.js
index cd75b91..36a66f7 100644
--- a/lib/waterfall.js
+++ b/lib/waterfall.js
@@ -6,6 +6,9 @@ import rest from 'lodash/rest';
import onlyOnce from './internal/onlyOnce';
/**
+ *```
+ * import waterfall from 'async/waterfall'
+ * ```
* Runs the `tasks` array of functions in series, each passing their results to
* the next in the array. However, if any of the `tasks` pass an error to their
* own callback, the next function is not executed, and the main `callback` is
@@ -13,7 +16,7 @@ import onlyOnce from './internal/onlyOnce';
*
* @name waterfall
* @static
- * @memberOf module:async
+ * @memberOf module:ControlFlow
* @method
* @category Control Flow
* @param {Array} tasks - An array of functions to run, each function is passed