summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-02-27 15:02:03 -0800
committerAlexander Early <alexander.early@gmail.com>2016-02-27 15:02:03 -0800
commit53c3c4947fd2fd9a5e771dc90b491d941d9ebbe0 (patch)
tree15aab1787669a27eb1ac13dde695887924742d5e /README.md
parent9333133af2b1b7cc01c0c20500a404408517fdae (diff)
downloadasync-53c3c4947fd2fd9a5e771dc90b491d941d9ebbe0.tar.gz
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 e73c12f..10e7cc8 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ async.map(['file1','file2','file3'], fs.stat, function(err, results){
async.filter(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
- callback(!err)
+ callback(null, !err)
});
}, function(results){
// results now equals an array of the existing files
@@ -417,7 +417,7 @@ __Example__
```js
async.filter(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
- callback(!err)
+ callback(null, !err)
});
}, function(results){
// results now equals an array of the existing files