-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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: Rectify error in repl defineCommand tutorial #7365
Conversation
dc7bb4a
to
87452ab
Compare
LGTM |
2 similar comments
LGTM |
LGTM |
@@ -312,12 +312,12 @@ replServer.defineCommand('sayhello', { | |||
action: function(name) { | |||
this.lineParser.reset(); | |||
this.bufferedCommand = ''; | |||
this.write(`Hello, ${name}!\n`); | |||
console.log(`Hello, ${name}!\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.
both should not have the '\n'
when using console.
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.
Updated PR accordingly.
Please let me know if there's anything else I can do to help getting this issue closed. Thanks. |
@cjihrig Did you merge this with the github merge button? The |
Yes, I did. |
okay, good to know that that can happen |
Checklist
Affected core subsystem(s)
doc, repl
Description of change
Fixes: #7357