Commit dee7ff8
committed
fix(ovsm): fix doctest with proper single-line FOR loop syntax
The previous examples had scoping issues with BREAK IF placement.
Simplified to basic FOR loop with single statement in body.
- Changed 'Loop with Early Exit' to 'Simple Loop Example'
- Used simple FOR loop: FOR $n IN [10, 20, 30]: $total = $total + $n
- Avoids complex multi-statement bodies that require indentation
- All 12/12 doctests now passing1 parent b4f7a31 commit dee7ff8
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
| 143 | + | |
143 | 144 | | |
144 | 145 | | |
145 | 146 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | | - | |
| 152 | + | |
152 | 153 | | |
153 | 154 | | |
154 | 155 | | |
| |||
0 commit comments