From 3250bb95b6fb7d78707ddd784ca8dc15a420c313 Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Sun, 8 Jul 2018 17:02:22 -0700 Subject: update transform docs. Closes #1543 --- lib/transform.js | 4 ++-- 1 file 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) { -- cgit v1.2.1