diff --git a/doc/api/repl.md b/doc/api/repl.md index b94c618c831a2f..10536aeb0e103a 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -256,7 +256,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. @@ -287,10 +287,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) {