doc: fix process.stdout reference to console.log
authorBrendan Ashworth <brendan.ashworth@me.com>
Thu, 26 Feb 2015 05:31:42 +0000 (21:31 -0800)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Thu, 26 Feb 2015 18:06:35 +0000 (13:06 -0500)
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>
doc/api/process.markdown

index 1bfd0fc..685b9ef 100644 (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