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.
  • Loading branch information
brendanashworth committed Feb 26, 2015
1 parent 0af4c9e commit 0435844
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 0435844

Please sign in to comment.