Skip to content
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

Closed

Conversation

brendanashworth
Copy link
Contributor

This commit changes the word introduction to the code block to be
explicitly correct, and changes the d variable to msg for clarity.

console.log = function(d) {
process.stdout.write(d + '\n');
Console.prototype.log = function() {
this._stdout.write(util.format.apply(this, arguments) + '\n');
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

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

This commit changes the word introduction to the code block to be
explicitly correct, and changes the `d` variable to `msg` for clarity.
@brendanashworth
Copy link
Contributor Author

@vkurchatkin changed per your comments, how does it look now?

@vkurchatkin
Copy link
Contributor

LGTM

1 similar comment
@micnic
Copy link
Contributor

micnic commented Feb 26, 2015

LGTM

brendanashworth added a commit that referenced this pull request Feb 26, 2015
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]>
@Fishrock123
Copy link
Contributor

Thanks, landed in 2e2cf81

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants