doc: fix process.stdout reference to console.log

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: https://github.com/iojs/io.js/pull/964
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Reviewed-By: Nicu Micleușanu <micnic90@gmail.com>
Reviewed-By: Vladimir Kurchatkin <vladimir.kurchatkin@gmail.com>
This commit is contained in:
Brendan Ashworth authored and Jeremiah Senkpiel committed 2015-02-26 13:06:35 -05:00
1 parent 2e63bad7eb
commit 2e2cf81476
1 file changed
+3 -3
+3 -3
View File
@@ -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