summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorDaniel Hritzkiv <daniel.hritzkiv@gmail.com>2016-03-21 16:49:19 -0400
committerDaniel Hritzkiv <daniel.hritzkiv@gmail.com>2016-03-21 16:49:19 -0400
commit4d1c8ae664e1ad5ab15da0fab7ec18765f984b89 (patch)
tree33da25c97d0c70137ec7b5811b341d4045a64635 /README.md
parentfa85fcaf02e0689876159465e0490901d03b9bdc (diff)
downloadasync-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.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index 640b856..bfa20fc 100644
--- a/README.md
+++ b/README.md
@@ -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
});
```