Skip to content

Commit

Permalink
Add speaker notes to flow control basics (#2498)
Browse files Browse the repository at this point in the history
Part of #1083.
  • Loading branch information
mgeisler authored Dec 6, 2024
1 parent e4e6b0c commit be47639
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/control-flow-basics.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Control Flow Basics

{{%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>
7 changes: 7 additions & 0 deletions src/control-flow-basics/loops/loop.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit be47639

Please sign in to comment.