diff options
-rw-r--r-- | lib/transform.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/transform.js b/lib/transform.js index 2a68845..014a494 100644 --- a/lib/transform.js +++ b/lib/transform.js @@ -5,7 +5,7 @@ import wrapAsync from './internal/wrapAsync'; /** * A relative of `reduce`. Takes an Object or Array, and iterates over each - * element in series, each step potentially mutating an `accumulator` value. + * element in parallel, each step potentially mutating an `accumulator` value. * The type of the accumulator defaults to the type of collection passed in. * * @name transform @@ -27,7 +27,7 @@ import wrapAsync from './internal/wrapAsync'; * async.transform([1,2,3], function(acc, item, index, callback) { * // pointless async: * process.nextTick(function() { - * acc.push(item * 2) + * acc[index] = item * 2 * callback(null) * }); * }, function(err, result) { |