summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharlierudolph <charles.rudolph@originate.com>2016-02-16 11:22:03 -0800
committercharlierudolph <charles.rudolph@originate.com>2016-02-16 11:22:03 -0800
commitd611a47884f899a642b6582ef5b2766b1ad3f5de (patch)
tree728b621a8b178575e126f0ff0ca1e4c034e1b580
parent10ac9e9514d2cd6c3cfe1a4bf6785bdb4e146ab0 (diff)
downloadasync-d611a47884f899a642b6582ef5b2766b1ad3f5de.tar.gz
fix readme
-rw-r--r--README.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/README.md b/README.md
index b5a3664..cd549d4 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(filepath, !err)
+ callback(null, !err)
});
}, function(err, results){
// results now equals an array of the existing files
@@ -416,7 +416,7 @@ __Example__
```js
async.filter(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
- callback(filepath, !err)
+ callback(null, !err)
});
}, function(err, results){
// results now equals an array of the existing files
@@ -519,7 +519,7 @@ __Example__
```js
async.detect(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
- callback(filepath, !err)
+ callback(null, !err)
});
}, function(err, result){
// result now equals the first file in the list that exists
@@ -607,7 +607,7 @@ __Example__
```js
async.some(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
- callback(filepath, !err)
+ callback(null, !err)
});
}, function(err, result){
// if result is true then at least one of the files exists
@@ -643,7 +643,7 @@ __Example__
```js
async.every(['file1','file2','file3'], function(filePath, callback) {
fs.access(filePath, function(err) {
- callback(filepath, !err)
+ callback(null, !err)
});
}, function(err, result){
// if result is true then every file exists