From d8f8096ec6e6b9516cd5ca3f046669194ec0984c Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Thu, 27 Apr 2017 04:42:14 +0300 Subject: [PATCH] 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 Reviewed-By: Colin Ihrig --- doc/api/repl.md | 1 - 1 file changed, 1 deletion(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 60c200699a1..6f16f922023 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -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();