summaryrefslogtreecommitdiff
path: root/lib/mapValues.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mapValues.js')
-rw-r--r--lib/mapValues.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/mapValues.js b/lib/mapValues.js
index a0a9470..c3daa56 100644
--- a/lib/mapValues.js
+++ b/lib/mapValues.js
@@ -26,8 +26,9 @@ import doLimit from './internal/doLimit';
* called once it has completed with an error (which can be `null`) and a
* transformed value. Invoked with (value, key, callback).
* @param {Function} [callback] - A callback which is called when all `iteratee`
- * functions have finished, or an error occurs. Results is an array of the
- * transformed items from the `obj`. Invoked with (err, result).
+ * functions have finished, or an error occurs. `result` is a new object consisting
+ * of each key from `obj`, with each transformed result on the right-hand side.
+ * Invoked with (err, result).
* @example
*
* async.mapValues({
@@ -37,7 +38,7 @@ import doLimit from './internal/doLimit';
* }, function (file, key, callback) {
* fs.stat(file, callback);
* }, function(err, result) {
- * // results is now a map of stats for each file, e.g.
+ * // result is now a map of stats for each file, e.g.
* // {
* // f1: [stats for file1],
* // f2: [stats for file2],