From 29849743b875d13b439076ea18603ba4dd68a41e Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Mon, 26 Oct 2020 03:39:00 -0700 Subject: [PATCH] doc: make small improvements to REPL doc * button -> key * apply missing kbd element * revise "Recoverable errors" text for brevity and clarity PR-URL: https://github.com/nodejs/node/pull/35808 Reviewed-By: Daijiro Wachi Reviewed-By: Antoine du Hamel Reviewed-By: Luigi Pinca --- doc/api/repl.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 84b82ec8d6d56f..77a735df2bf7eb 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -254,7 +254,7 @@ forwards. Duplicated history entires will be skipped. -Entries are accepted as soon as any button is pressed that doesn't correspond +Entries are accepted as soon as any key is pressed that doesn't correspond with the reverse search. Cancelling is possible by pressing Esc or Ctrl+C. @@ -285,10 +285,9 @@ repl.start({ prompt: '> ', eval: myEval }); #### Recoverable errors -As a user is typing input into the REPL prompt, pressing **Enter** will -send the current line of input to the `eval` function. In order to support -multi-line input, the eval function can return an instance of `repl.Recoverable` -to the provided callback function: +At the REPL prompt, pressing Enter sends the current line of input to +the `eval` function. In order to support multi-line input, the `eval` function +can return an instance of `repl.Recoverable` to the provided callback function: ```js function myEval(cmd, context, filename, callback) {