projects
/
rust_exercises.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2865b2
)
fix spelling error (#11)
author
Thanos
<sonathad@proton.me>
Sat, 18 May 2024 15:54:24 +0000
(18:54 +0300)
committer
GitHub
<noreply@github.com>
Sat, 18 May 2024 15:54:24 +0000
(17:54 +0200)
book/src/02_basic_calculator/06_while.md
patch
|
blob
|
history
diff --git
a/book/src/02_basic_calculator/06_while.md
b/book/src/02_basic_calculator/06_while.md
index
8b80827
..
5c2d1b4
100644
(file)
--- 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)