| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent ee15142 commit 8074f69
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -256,7 +256,7 @@ forwards. | |||
| 256 | 256 | ||
| 257 | 257 | Duplicated history entires will be skipped. | |
| 258 | 258 | ||
| 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 | ||
| 260 | 260 | with the reverse search. Cancelling is possible by pressing <kbd>Esc</kbd> or | |
| 261 | 261 | <kbd>Ctrl</kbd>+<kbd>C</kbd>. | |
| 262 | 262 | ||
@@ -287,10 +287,9 @@ repl.start({ prompt: '> ', eval: myEval }); | |||
| 287 | 287 | ||
| 288 | 288 | #### Recoverable errors | |
| 289 | 289 | ||
| 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: | ||
| 294 | 293 | ||
| 295 | 294 | ```js | |
| 296 | 295 | function myEval(cmd, context, filename, callback) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments