summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
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