vault backup: 2025-05-15 14:07:04
This commit is contained in:
parent
baa7139462
commit
2b60088b81
@ -182,4 +182,8 @@ if number > 5 {
|
||||
Conditions for if statements *must* return Boolean types.
|
||||
|
||||
## Repetition with Loops
|
||||
To do loops in Rust, there are three main keywords for loops: `loop`, `while`, and
|
||||
`for`. `loop`s will loop infinitely until a `break` statement is triggered,
|
||||
`while` operates while a condition is true, and `for` loops through a specific
|
||||
number of iterations.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user