doc: remove unused util from child_process
authorKyle Robinson Young <kyle@dontkry.com>
Sat, 11 Aug 2012 17:56:04 +0000 (10:56 -0700)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 11 Aug 2012 22:08:43 +0000 (00:08 +0200)
doc/api/child_process.markdown

index 76a785b..092cb31 100644 (file)
@@ -266,8 +266,7 @@ Use `env` to specify environment variables that will be visible to the new proce
 
 Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
 
-    var util  = require('util'),
-        spawn = require('child_process').spawn,
+    var spawn = require('child_process').spawn,
         ls    = spawn('ls', ['-lh', '/usr']);
 
     ls.stdout.on('data', function (data) {
@@ -285,8 +284,7 @@ Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit cod
 
 Example: A very elaborate way to run 'ps ax | grep ssh'
 
-    var util  = require('util'),
-        spawn = require('child_process').spawn,
+    var spawn = require('child_process').spawn,
         ps    = spawn('ps', ['ax']),
         grep  = spawn('grep', ['ssh']);