Skip to content

Commit 8c254b5

Browse files
committed
docs: Fix repeat until instruction name
1 parent 7f64a5d commit 8c254b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/Virtual machine.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,16 @@ OP_LOOP_END
5353
### Repeat until
5454
Scratch has a while loop, but until is used more frequently, so the VM doesn't support the while loop.
5555

56-
The repeat until loop can be implemented using \link libscratchcpp::vm::OP_REPEAT_UNTIL OP_REPEAT_UNTIL \endlink
56+
The repeat until loop can be implemented using \link libscratchcpp::vm::OP_UNTIL_LOOP OP_UNTIL_LOOP \endlink
5757
and \link libscratchcpp::vm::OP_BEGIN_UNTIL_LOOP OP_BEGIN_UNTIL_LOOP \endlink.
5858
```
59-
OP_REPEAT_UNTIL
59+
OP_UNTIL_LOOP
6060
(evaluate the condition here)
6161
OP_BEGIN_UNTIL_LOOP
6262
...
6363
OP_LOOP_END
6464
```
65-
\note The condition is evaluated after \link libscratchcpp::vm::OP_REPEAT_UNTIL OP_REPEAT_UNTIL \endlink and the loop
65+
\note The condition is evaluated after \link libscratchcpp::vm::OP_UNTIL_LOOP OP_UNTIL_LOOP \endlink and the loop
6666
starts with \link libscratchcpp::vm::OP_BEGIN_UNTIL_LOOP OP_BEGIN_UNTIL_LOOP \endlink.
6767

6868
### Forever
@@ -75,7 +75,7 @@ OP_LOOP_END
7575

7676
This is equivalent to:
7777
```
78-
OP_REPEAT_UNTIL
78+
OP_UNTIL_LOOP
7979
OP_NULL
8080
OP_BEGIN_UNTIL_LOOP
8181
...

0 commit comments

Comments
 (0)