mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
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:
1 parent
2e63bad7eb
commit
2e2cf81476
1 file changed
+3
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user