Permalink
Browse files

[doc] Fix wrong example code

  • Loading branch information...
1 parent e4e955a commit 11a3124300498a2d089f56120aab13a4afaa99d7 @mmalecki committed Nov 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -10,7 +10,7 @@ Spawn commands like `child_process.exec` does but return a `ChildProcess`.
var spawnCommand = require('spawn-command'),
child = spawnCommand('echo "Hello spawn" | base64');
-child.on('stdout', function (data) {
+child.stdout.on('data', function (data) {
console.log('data', data);
});

0 comments on commit 11a3124

Please sign in to comment.