Skip to content

Commit 2984974

Browse files
TrottBethGriggs
authored andcommittedDec 15, 2020
doc: make small improvements to REPL doc
* button -> key * apply missing kbd element * revise "Recoverable errors" text for brevity and clarity PR-URL: #35808 Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 02f9a2a commit 2984974

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed
 

‎doc/api/repl.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ forwards.
254254

255255
Duplicated history entires will be skipped.
256256

257-
Entries are accepted as soon as any button is pressed that doesn't correspond
257+
Entries are accepted as soon as any key is pressed that doesn't correspond
258258
with the reverse search. Cancelling is possible by pressing <kbd>Esc</kbd> or
259259
<kbd>Ctrl</kbd>+<kbd>C</kbd>.
260260

@@ -285,10 +285,9 @@ repl.start({ prompt: '> ', eval: myEval });
285285

286286
#### Recoverable errors
287287

288-
As a user is typing input into the REPL prompt, pressing **Enter** will
289-
send the current line of input to the `eval` function. In order to support
290-
multi-line input, the eval function can return an instance of `repl.Recoverable`
291-
to the provided callback function:
288+
At the REPL prompt, pressing <kbd>Enter</kbd> sends the current line of input to
289+
the `eval` function. In order to support multi-line input, the `eval` function
290+
can return an instance of `repl.Recoverable` to the provided callback function:
292291

293292
```js
294293
function myEval(cmd, context, filename, callback) {

0 commit comments

Comments
 (0)
Please sign in to comment.