mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-05-16 23:55:42 +02:00
parent
e4e6b0ce1d
commit
be476391f2
@ -1,3 +1,12 @@
|
|||||||
# Control Flow Basics
|
# Control Flow Basics
|
||||||
|
|
||||||
{{%segment outline}}
|
{{%segment outline}}
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
- We will now cover the many kinds of flow control found in Rust.
|
||||||
|
|
||||||
|
- Most of this will be very familiar to what you have seen in other programming
|
||||||
|
languages.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
@ -15,3 +15,10 @@ fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
|
||||||
|
- The `loop` statement works like a `while true` loop. Use it for things like
|
||||||
|
servers which will serve connections forever.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user