Skip to content

Commit 6578a41

Browse files
committed
FIX text -- about until
Now wording about `until` are more correct. See: skilldrick#15
1 parent 16bf153 commit 6578a41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ Now hit `B`, then `C`, and you should see the following:
684684

685685
Forth has another kind of loop called `begin until`. This works like a `while`
686686
loop in C-based languages. Every time the word `until` is hit, the interpreter
687-
checks to see if the top of the stack is non-zero (true). If it is, it jumps
688-
back to the matching `begin`. If not, execution continues.
687+
checks to see if the top of the stack is non-zero (true). If it is zero, it jumps
688+
back to the matching `begin`. If it is non-zero, execution continues after `until`.
689689

690690
Here's an example of using `begin until` to print key codes:
691691

0 commit comments

Comments
 (0)