Skip to content
Browse files

Update README.md

Fix Arguments Mapping sample code
  • Loading branch information...
1 parent 7d5c8e9 commit 0019ea4c92bc83d9438bc34d0bf31d3bd6ed5527 @nakamura-to committed Aug 16, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
2 README.md
@@ -224,7 +224,7 @@ var exec = require('child_process').exec;
var g = gate.create();
// single mapping: arguments[1] in the callback will be result
-fs.readFile('file1', 'utf8', latch(1));
+fs.readFile('file1', 'utf8', g.latch(1));
// multiple mapping: arguments[1] and argments[2] in the callback will be result
exec('cat *.js bad_file | wc -l', g.latch({stdout: 1, stderr: 2}));

0 comments on commit 0019ea4

Please sign in to comment.
Something went wrong with that request. Please try again.