From 8c3ef6cb51c0700e091cc183783b9593532086dd Mon Sep 17 00:00:00 2001 From: Thanos Date: Sat, 18 May 2024 18:54:24 +0300 Subject: [PATCH] fix spelling error (#11) --- book/src/02_basic_calculator/06_while.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/02_basic_calculator/06_while.md b/book/src/02_basic_calculator/06_while.md index 8b80827..5c2d1b4 100644 --- a/book/src/02_basic_calculator/06_while.md +++ b/book/src/02_basic_calculator/06_while.md @@ -30,7 +30,7 @@ while i <= 5 { } ``` -This will keep adding 1 to `sum` until `i` is no longer less than or equal to 5. +This will keep adding 1 to `i` and `i` to `sum` until `i` is no longer less than or equal to 5. ## The `mut` keyword @@ -86,4 +86,4 @@ This will compile and run without errors. ## Further reading -- [`while` loop documentation](https://doc.rust-lang.org/std/keyword.while.html) \ No newline at end of file +- [`while` loop documentation](https://doc.rust-lang.org/std/keyword.while.html)