doc: fix references to error keyword
authorBenjamin Waters <ben25890@gmail.com>
Tue, 4 Feb 2014 01:56:21 +0000 (20:56 -0500)
committerFedor Indutny <fedor.indutny@gmail.com>
Tue, 4 Feb 2014 08:50:24 +0000 (12:50 +0400)
References for err.signal and err.code should be error.signal and
error.code.

Fixes joyent/node#6862

doc/api/child_process.markdown

index 9c7125c..ebc9cdc 100644 (file)
@@ -510,8 +510,8 @@ Runs a command in a shell and buffers the output.
     });
 
 The callback gets the arguments `(error, stdout, stderr)`. On success, `error`
-will be `null`.  On error, `error` will be an instance of `Error` and `err.code`
-will be the exit code of the child process, and `err.signal` will be set to the
+will be `null`.  On error, `error` will be an instance of `Error` and `error.code`
+will be the exit code of the child process, and `error.signal` will be set to the
 signal that terminated the process.
 
 There is a second optional argument to specify several options. The