diff --git a/Programming/Rust/Chapter 3 - Common Programming Concepts.md b/Programming/Rust/Chapter 3 - Common Programming Concepts.md index 9f37d245a..aec36b7c0 100644 --- a/Programming/Rust/Chapter 3 - Common Programming Concepts.md +++ b/Programming/Rust/Chapter 3 - Common Programming Concepts.md @@ -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.