Skip to content

Commit 2e2cf81

Browse files
brendanashworthFishrock123
authored andcommitted
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: #964 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Nicu Micleușanu <[email protected]> Reviewed-By: Vladimir Kurchatkin <[email protected]>
1 parent 2e63bad commit 2e2cf81

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/api/process.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -236,10 +236,10 @@ emulation with `process.kill()`, and `child_process.kill()`:
236236

237237
A `Writable Stream` to `stdout` (on fd `1`).
238238

239-
Example: the definition of `console.log`
239+
For example, a `console.log` equivalent could look like this:
240240

241-
console.log = function(d) {
242-
process.stdout.write(d + '\n');
241+
console.log = function(msg) {
242+
process.stdout.write(msg + '\n');
243243
};
244244

245245
`process.stderr` and `process.stdout` are unlike other streams in io.js in

0 commit comments

Comments
 (0)