-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: fix process.stdout reference to console.log #964
doc: fix process.stdout reference to console.log #964
Conversation
console.log = function(d) { | ||
process.stdout.write(d + '\n'); | ||
Console.prototype.log = function() { | ||
this._stdout.write(util.format.apply(this, arguments) + '\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a good example anymore, it doesn't use process.stdout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh my, I overlooked that - so it'd make sense to just remove it altogether, wouldn't it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should leave it as is. Maybe reword caption to make it clear that it is not how actual console.log
is implemented, but an example of how it could be implemented
ca5b099
to
969ff97
Compare
This commit changes the word introduction to the code block to be explicitly correct, and changes the `d` variable to `msg` for clarity.
969ff97
to
0435844
Compare
@vkurchatkin changed per your comments, how does it look now? |
LGTM |
1 similar comment
LGTM |
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]>
Thanks, landed in 2e2cf81 |
This commit changes the word introduction to the code block to be
explicitly correct, and changes the
d
variable tomsg
for clarity.