From 2b60088b8173a4ea592b0d93f7d4a16b48b1ea8c Mon Sep 17 00:00:00 2001 From: Dane Sabo Date: Thu, 15 May 2025 14:07:04 -0400 Subject: [PATCH] vault backup: 2025-05-15 14:07:04 --- Programming/Rust/Chapter 3 - Common Programming Concepts.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Programming/Rust/Chapter 3 - Common Programming Concepts.md b/Programming/Rust/Chapter 3 - Common Programming Concepts.md index 9f37d245..aec36b7c 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.