Files
Serendipity caf17e16fc feat: for step 步长 — for i in 0 to 10 step 2 { ... }
Token(75): +TOK_STEP, desugar_for 增加 step_expr 参数, 默认 step=1

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-07 14:13:09 +08:00

7 lines
93 B
Plaintext

fn main() -> i64 {
for i in 0 to 10 step 2 {
print_i64(i);
}
return 0;
}