From 2e2cf81476eb86ac6c5870c6ccafa04114ade3de Mon Sep 17 00:00:00 2001 From: Brendan Ashworth Date: Wed, 25 Feb 2015 21:31:42 -0800 Subject: [PATCH] doc: fix process.stdout reference to console.log MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Nicu Micleușanu Reviewed-By: Vladimir Kurchatkin --- doc/api/process.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/process.markdown b/doc/api/process.markdown index 1bfd0fc..685b9ef 100644 --- a/doc/api/process.markdown +++ b/doc/api/process.markdown @@ -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 -- 2.7.4