diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 1bfd0fcd4c0e36..685b9ef02d15c7 100644 --- a/doc/api/process.markdown +++ b/doc/api/process.markdown @@ -236,10 +236,10 @@ emulation with `process.kill()`, and `child_process.kill()`: A `Writable Stream` to `stdout` (on fd `1`). -Example: the definition of `console.log` +For example, a `console.log` equivalent could look like this: - console.log = function(d) { - process.stdout.write(d + '\n'); + console.log = function(msg) { + process.stdout.write(msg + '\n'); }; `process.stderr` and `process.stdout` are unlike other streams in io.js in