Skip to content

Commit 9001cca

Browse files
committed
upd: lazily commit on June 2nd, 2026 4:55 PM UTC -0700 by lily
1 parent 9543a9e commit 9001cca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/loops.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ for <Init>?; <Condition>?; <Iterate --/++>? {
3434
}
3535
```
3636

37-
If every field is left empty (for ; ; ; { ... }), the loop would run indefinitely.
37+
If every field is left empty (`for ; ; ; { ... }`), the loop would run indefinitely.
3838

3939
### While Loops
4040

@@ -65,4 +65,5 @@ repeat {
6565
Inside loops, sometimes you cannot programmatically write what you want without exiting early or skipping to the next iteration.
6666

6767
- To *stop* a loop early, you can use the `break` keyword, which will stop the loop early, disregarding any future code after it.
68+
6869
- To *skip* to the next iteration without actually stopping it, you can use the `pass` keyword, which, similarly to `break`, disregards any future code, but keeps the loop itself running for all future iterations.

0 commit comments

Comments
 (0)