diff --git a/doc/api/child_process.markdown b/doc/api/child_process.markdown index 0c8c433a819..3ddf329790b 100644 --- a/doc/api/child_process.markdown +++ b/doc/api/child_process.markdown @@ -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