doc: fix bug in child_process.spawn() sample code
authorMike Morearty <mike@morearty.com>
Fri, 13 Jul 2012 21:18:52 +0000 (14:18 -0700)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 16 Jul 2012 00:27:01 +0000 (02:27 +0200)
doc/api/child_process.markdown

index 99f72db..6439fce 100644 (file)
@@ -306,7 +306,7 @@ Example: A very elaborate way to run 'ps ax | grep ssh'
     });
 
     grep.stdout.on('data', function (data) {
-      console.log(data);
+      console.log('' + data);
     });
 
     grep.stderr.on('data', function (data) {