Skip to content

Commit

Permalink
Slide refs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daanoz committed Apr 4, 2024
1 parent 2064835 commit 3f910a3
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions presentation/presentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ fn main() {
_Note: exercise_09, exercise_10, exercise_11_

---
class: big
class: lessbig
## Cargo

In the `exercises` folder, you can issue `cargo` commands in the terminal to achieve certain tasks:
Expand All @@ -280,7 +280,7 @@ Other interesting commands

Clone exercises and presentation using git with: <br/>`git clone https://github.com/Daanoz/rust-hands-on.git`

Start by making exercise 01 to 11.
Start by making exercise 01 to 11. <br />Access our slides at `https://daanoz.github.io/rust-hands-on/`

_Note: This is a public repo, do not put any confidential information in here._

Expand Down Expand Up @@ -353,7 +353,7 @@ class: big
## Control flow

- If statement
- Loops (for, while)
- Loops (for, while, loop)
- Enumerations
- Pattern matching (match)
- Pattern matching alternative (if let)
Expand Down Expand Up @@ -403,7 +403,7 @@ _Note: exercise_18_
class: big
## Control flow - Loops

.col-5[
.col-3[
For loop:
```rust
let values = [1,2,3];
Expand All @@ -416,7 +416,7 @@ for value in values {
.col-1[
&nbsp;
]
.col-6[
.col-3[
While loop:
```rust
let mut i = 0;
Expand All @@ -426,6 +426,23 @@ while i < 10 {
}
```
]
--
.col-1[
&nbsp;
]
.col-4[
Loop:
```rust
let mut i = 0;
loop {
println!("{i}");
i += 1;
if i >= 10 {
break;
}
}
```
]

_Note: exercise_19_

Expand Down

0 comments on commit 3f910a3

Please sign in to comment.