mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-08 01:57:02 +09:00
chore: Update documentation for the while
loop with continue
statement
This commit is contained in:
parent
e8f09190d6
commit
0f6e849660
1 changed files with 7 additions and 3 deletions
|
@ -8,12 +8,16 @@
|
|||
// while (condition) : (continue expression) {
|
||||
//
|
||||
// if (other condition) continue;
|
||||
//
|
||||
// more statements;
|
||||
// }
|
||||
//
|
||||
// The "continue expression" executes every time the loop restarts
|
||||
// whether the "continue" statement happens or not.
|
||||
// The continue statement causes the rest of the statements in the block {} to be skipped
|
||||
// for this iteration of the loop.
|
||||
//
|
||||
// Then, the "continue expression" is executed and then
|
||||
// the condition is checked again. If the condition is true, the block executes again.
|
||||
//
|
||||
|
||||
const std = @import("std");
|
||||
|
||||
pub fn main() void {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue