doc: fix callback argument of child_process.exec, execFile
authorANDO Takahiro <takahiro.ando@gmail.com>
Tue, 1 May 2012 02:41:29 +0000 (11:41 +0900)
committerkoichik <koichik@improvement.jp>
Fri, 4 May 2012 10:15:30 +0000 (19:15 +0900)
Fixes #3196.

doc/api/child_process.markdown

index 0c8c433..3ddf329 100644 (file)
@@ -234,7 +234,7 @@ See also: `child_process.exec()` and `child_process.fork()`
   * `maxBuffer` {Number} (Default: 200*1024)
   * `killSignal` {String} (Default: 'SIGTERM')
 * `callback` {Function} called with the output when process terminates
-  * `code` {Integer} Exit code
+  * `error` {Error}
   * `stdout` {Buffer}
   * `stderr` {Buffer}
 * Return: ChildProcess object
@@ -291,7 +291,7 @@ the child process is killed.
   * `maxBuffer` {Number} (Default: 200*1024)
   * `killSignal` {String} (Default: 'SIGTERM')
 * `callback` {Function} called with the output when process terminates
-  * `code` {Integer} Exit code
+  * `error` {Error}
   * `stdout` {Buffer}
   * `stderr` {Buffer}
 * Return: ChildProcess object