summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 9763875..672e068 100644
--- a/README.md
+++ b/README.md
@@ -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
});
@@ -416,9 +416,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
});
```