diff options
author | Alexander Early <alexander.early@gmail.com> | 2016-07-12 16:47:05 -0700 |
---|---|---|
committer | Alexander Early <alexander.early@gmail.com> | 2016-07-12 16:47:05 -0700 |
commit | d31dc8e6798c0e1315643db1e742d85a283bdbcc (patch) | |
tree | 214d42636c538b8dd7f91055fc5001cc715679d2 /lib | |
parent | f943a28d211b1ba73e8c03a5b431b4cda5fcafaf (diff) | |
download | async-d31dc8e6798c0e1315643db1e742d85a283bdbcc.tar.gz |
fix mapValues example. Closes #1233
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mapValues.js | 4 |
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], |