Skip to content

Commit

Permalink
Merge pull request #1039 from lgaticaq/master
Browse files Browse the repository at this point in the history
Fix async.filter example
  • Loading branch information
aearly committed Feb 27, 2016
2 parents d1ef64c + 0bb98fc commit 7ee1595
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ async.map(['file1','file2','file3'], fs.stat, function(err, results){

async.filter(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
callback(null, !err)
callback(!err)
});
}, function(err, results){
}, function(results){
// results now equals an array of the existing files
});

Expand Down Expand Up @@ -417,9 +417,9 @@ __Example__
```js
async.filter(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
callback(null, !err)
callback(!err)
});
}, function(err, results){
}, function(results){
// results now equals an array of the existing files
});
```
Expand Down

0 comments on commit 7ee1595

Please sign in to comment.