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:
Vse Mozhet Byt committed 2017-04-29 02:10:43 +03:00
1 parent 8092fb0a59
commit d8f8096ec6
1 file changed
-1
-1
View File
@@ -335,7 +335,6 @@ const replServer = repl.start({prompt: '> '});
replServer.defineCommand('sayhello', {
help: 'Say hello',
action(name) {
this.lineParser.reset();
this.bufferedCommand = '';
console.log(`Hello, ${name}!`);
this.displayPrompt();