diff options
author | Daniel Hritzkiv <daniel.hritzkiv@gmail.com> | 2016-03-21 16:49:19 -0400 |
---|---|---|
committer | Daniel Hritzkiv <daniel.hritzkiv@gmail.com> | 2016-03-21 16:49:19 -0400 |
commit | 4d1c8ae664e1ad5ab15da0fab7ec18765f984b89 (patch) | |
tree | 33da25c97d0c70137ec7b5811b341d4045a64635 /README.md | |
parent | fa85fcaf02e0689876159465e0490901d03b9bdc (diff) | |
download | async-4d1c8ae664e1ad5ab15da0fab7ec18765f984b89.tar.gz |
Update README.md
Fix final callback documented arguments for `filter`method, to reflect changes in 2.0. (adds the `err` argument before the `results` argument)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ async.filter(['file1','file2','file3'], function(filePath, callback) { fs.access(filePath, function(err) { callback(null, !err) }); -}, function(results){ +}, function(err, results){ // results now equals an array of the existing files }); @@ -450,7 +450,7 @@ async.filter(['file1','file2','file3'], function(filePath, callback) { fs.access(filePath, function(err) { callback(null, !err) }); -}, function(results){ +}, function(err, results){ // results now equals an array of the existing files }); ``` |