Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Fix Arguments Mapping sample code
  • Loading branch information
nakamura-to committed Aug 16, 2012
1 parent 7d5c8e9 commit 0019ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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}));
Expand Down

0 comments on commit 0019ea4

Please sign in to comment.