summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2016-06-13 16:44:50 -0400
committerGitHub <noreply@github.com>2016-06-13 16:44:50 -0400
commit966e75c50385e693e13ab3feb12c9217daf2724b (patch)
tree98325171bbe272c747288e8863a2aea3fe0fbc93 /README.md
parent247cf276e873830d74a95123b4c33bd85e3a1225 (diff)
parent23289eb1373b569f89d0722bbddfa561ac94f95b (diff)
downloadasync-966e75c50385e693e13ab3feb12c9217daf2724b.tar.gz
Merge pull request #1185 from xbrightmatterx/readme-patch
Update README, syntax correction
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 42f6694..1230fe7 100644
--- a/README.md
+++ b/README.md
@@ -315,7 +315,7 @@ async.each(openFiles, function(file, callback) {
// Perform operation on file here.
console.log('Processing file ' + file);
- if( file.length > 32 ) {
+ if (file.length > 32) {
console.log('This file name is too long');
callback('File name too long');
} else {
@@ -325,7 +325,7 @@ async.each(openFiles, function(file, callback) {
}
}, function(err){
// if any of the file processing produced an error, err would equal that error
- if( err ) {
+ if (err) {
// One of the iterations produced an error.
// All processing will now stop.
console.log('A file failed to process');