From d31dc8e6798c0e1315643db1e742d85a283bdbcc Mon Sep 17 00:00:00 2001 From: Alexander Early Date: Tue, 12 Jul 2016 16:47:05 -0700 Subject: [PATCH] fix mapValues example. Closes #1233 --- lib/mapValues.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/mapValues.js b/lib/mapValues.js index 240fc67c9..a0a947092 100644 --- a/lib/mapValues.js +++ b/lib/mapValues.js @@ -34,7 +34,9 @@ import doLimit from './internal/doLimit'; * f1: 'file1', * f2: 'file2', * f3: 'file3' - * }, fs.stat, function(err, result) { + * }, function (file, key, callback) { + * fs.stat(file, callback); + * }, function(err, result) { * // results is now a map of stats for each file, e.g. * // { * // f1: [stats for file1],