diff --git a/presentation/presentation.md b/presentation/presentation.md index c3efcdd..78857ea 100644 --- a/presentation/presentation.md +++ b/presentation/presentation.md @@ -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: @@ -280,7 +280,7 @@ Other interesting commands Clone exercises and presentation using git with:
`git clone https://github.com/Daanoz/rust-hands-on.git` -Start by making exercise 01 to 11. +Start by making exercise 01 to 11.
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._ @@ -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) @@ -403,7 +403,7 @@ _Note: exercise_18_ class: big ## Control flow - Loops -.col-5[ +.col-3[ For loop: ```rust let values = [1,2,3]; @@ -416,7 +416,7 @@ for value in values { .col-1[   ] -.col-6[ +.col-3[ While loop: ```rust let mut i = 0; @@ -426,6 +426,23 @@ while i < 10 { } ``` ] +-- +.col-1[ +   +] +.col-4[ +Loop: +```rust +let mut i = 0; +loop { + println!("{i}"); + i += 1; + if i >= 10 { + break; + } +} +``` +] _Note: exercise_19_