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>
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