Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2020-10-26 13:39:00 +0300
committerRich Trott <rtrott@gmail.com>2020-10-28 16:29:39 +0300
commit937b70ddec3e9befc06cf0ab07b39d66827d0886 (patch)
tree5d80cd656b33d30ce4a27d56187d290bb0cab034 /doc/api/repl.md
parent761c1b0797a73f5442b2a28de5a1d508efbc70ad (diff)
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 <daijiro.wachi@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/repl.md')
-rw-r--r--doc/api/repl.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/api/repl.md b/doc/api/repl.md
index b94c618c831..10536aeb0e1 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 <kbd>Esc</kbd> or
<kbd>Ctrl</kbd>+<kbd>C</kbd>.
@@ -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 <kbd>Enter</kbd> 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) {