Skip to content

Commit

Permalink
doc: fix process.stdout reference to console.log
Browse files Browse the repository at this point in the history
This commit changes the word introduction to the code block to be
explicitly correct, and changes the `d` variable to `msg` for clarity.

PR-URL: #964
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Nicu Micleușanu <[email protected]>
Reviewed-By: Vladimir Kurchatkin <[email protected]>
  • Loading branch information
brendanashworth authored and Fishrock123 committed Feb 26, 2015
1 parent 2e63bad commit 2e2cf81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/api/process.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e2cf81

Please sign in to comment.