doc: update example in repl.md
Delete unused method call. PR-URL: https://github.com/nodejs/node/pull/12685 Refs: https://github.com/nodejs/node/pull/6171 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
8092fb0a59
commit
d8f8096ec6
@ -335,7 +335,6 @@ const replServer = repl.start({prompt: '> '});
|
|||||||
replServer.defineCommand('sayhello', {
|
replServer.defineCommand('sayhello', {
|
||||||
help: 'Say hello',
|
help: 'Say hello',
|
||||||
action(name) {
|
action(name) {
|
||||||
this.lineParser.reset();
|
|
||||||
this.bufferedCommand = '';
|
this.bufferedCommand = '';
|
||||||
console.log(`Hello, ${name}!`);
|
console.log(`Hello, ${name}!`);
|
||||||
this.displayPrompt();
|
this.displayPrompt();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user