From 8af90e31692db66058df0acb8831922b8a6b9a19 Mon Sep 17 00:00:00 2001 From: majecty Date: Fri, 22 May 2015 21:43:13 +0900 Subject: Update README.md Fix document errors about 'times' and 'timesSeries'. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4e0b9fc..6775ad5 100644 --- a/README.md +++ b/README.md @@ -1573,9 +1573,9 @@ call_order.push('one') ``` -### times(n, callback) +### times(n, iterator, callback) -Calls the `callback` function `n` times, and accumulates results in the same manner +Calls the `iterator` function `n` times, and accumulates results in the same manner you would use with [`map`](#map). __Arguments__ @@ -1604,7 +1604,7 @@ async.times(5, function(n, next){ ``` -### timesSeries(n, callback) +### timesSeries(n, iterator, callback) The same as [`times`](#times), only the iterator is applied to each item in `arr` in series. The next `iterator` is only called once the current one has completed. -- cgit v1.2.1