summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-07-12 16:47:05 -0700
committerAlexander Early <alexander.early@gmail.com>2016-07-12 16:47:05 -0700
commitd31dc8e6798c0e1315643db1e742d85a283bdbcc (patch)
tree214d42636c538b8dd7f91055fc5001cc715679d2
parentf943a28d211b1ba73e8c03a5b431b4cda5fcafaf (diff)
downloadasync-d31dc8e6798c0e1315643db1e742d85a283bdbcc.tar.gz
fix mapValues example. Closes #1233
-rw-r--r--lib/mapValues.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mapValues.js b/lib/mapValues.js
index 240fc67..a0a9470 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],