Skip to content

Commit 01bc9ce

Browse files
gh-50: Fix contradiction in specification regarding FOR.
1 parent 283a52a commit 01bc9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/SPECIFICATION.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@
911911

912912
- `WHILE(condition){ block }`
913913

914-
- `FOR(counter, INT: target){ block }` ; `counter` initialized to 0, loop until counter >= target
914+
- `FOR(counter, INT: target){ block }` ; `counter` initialized to 1, loop until counter >= target
915915
916916
- `PARFOR(counter, INT: target){ block }` ; concurrently execute `target` iterations with `counter` bound to `1..T`. Iteration bodies run in parallel (threaded) and MAY race on shared mutable identifiers. `CONTINUE()` ends the current iteration only; `BREAK(n)` terminates the entire `PARFOR` (prevents starting further iterations, waits for in-flight iterations to finish, then propagates the `BreakSignal`). Runtime errors raised inside iterations are collected and the first such error is re-raised after all iterations join.
917917

0 commit comments

Comments
 (0)