mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-22 14:03:10 -05:00
Add missing opening braces in while statements
This commit is contained in:
parent
d316d8c6f0
commit
bd30da390b
1 changed files with 2 additions and 2 deletions
|
@ -4,14 +4,14 @@
|
|||
// end of the loop or when an explicit 'continue' is invoked (we'll
|
||||
// try those out next):
|
||||
//
|
||||
// while (condition) : (continue expression)
|
||||
// while (condition) : (continue expression) {
|
||||
// ...
|
||||
// }
|
||||
//
|
||||
// Example:
|
||||
//
|
||||
// var foo = 2;
|
||||
// while (foo<10) : (foo+=2)
|
||||
// while (foo<10) : (foo+=2) {
|
||||
// // Do something with even numbers less than 10...
|
||||
// }
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue