Skip to content

Commit a9ac635

Browse files
committed
Fix typo in INKEY example
1 parent 29f4bed commit a9ac635

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cli/tests/repl/help.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ Output from HELP INKEY:
727727
explicitly poll the keyboard. For example, to wait until the escape
728728
key is pressed, you could do:
729729

730-
k$ = "": WHILE k$ = <> "ESC": k = INKEY$(): SLEEP 0.01: WEND
730+
k$ = "": WHILE k$ <> "ESC": k = INKEY$(): SLEEP 0.01: WEND
731731

732732
This non-blocking design lets you to combine the reception of multiple
733733
evens, such as from GPIO_INPUT?, within the same loop.

std/src/console/cmds.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ end or CTRL+E (END), enter (ENTER), CTRL+D (EOF), escape (ESC), home or CTRL+A (
172172
CTRL+C (INT), page up (PGUP), page down (PGDOWN), and tab (TAB).
173173
This function never blocks. To wait for a key press, you need to explicitly poll the keyboard. \
174174
For example, to wait until the escape key is pressed, you could do:
175-
k$ = \"\": WHILE k$ = <> \"ESC\": k = INKEY$(): SLEEP 0.01: WEND
175+
k$ = \"\": WHILE k$ <> \"ESC\": k = INKEY$(): SLEEP 0.01: WEND
176176
This non-blocking design lets you to combine the reception of multiple evens, such as from \
177177
GPIO_INPUT?, within the same loop.",
178178
)

0 commit comments

Comments
 (0)