Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8074f69

Browse filesBrowse files
Trotttargos
authored andcommitted
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 ee15142 commit 8074f69
Copy full SHA for 8074f69

File tree

Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-5
lines changed
Open diff view settings
Collapse file

‎doc/api/repl.md‎

Copy file name to clipboardExpand all lines: doc/api/repl.md
+4-5Lines changed: 4 additions & 5 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ forwards.
256256

257257
Duplicated history entires will be skipped.
258258

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

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

288288
#### Recoverable errors
289289

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

295294
```js
296295
function myEval(cmd, context, filename, callback) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.