summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2018-07-08 17:02:22 -0700
committerAlexander Early <alexander.early@gmail.com>2018-07-08 17:02:22 -0700
commit3250bb95b6fb7d78707ddd784ca8dc15a420c313 (patch)
tree726b9875e0ec0d5f4f2421ea579a939c63df2569
parente4751178540a3c6e64598b93977481ec599704d2 (diff)
downloadasync-3250bb95b6fb7d78707ddd784ca8dc15a420c313.tar.gz
update transform docs. Closes #1543
-rw-r--r--lib/transform.js4
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) {