Watch
1
0
Fork
You've already forked rustlings
0
rustlings/exercises/01_variables
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-12-18 19:06:05 +00:00
..
README.md Initial commit 2025-12-18 19:06:05 +00:00
variables1.rs Initial commit 2025-12-18 19:06:05 +00:00
variables2.rs Initial commit 2025-12-18 19:06:05 +00:00
variables3.rs Initial commit 2025-12-18 19:06:05 +00:00
variables4.rs Initial commit 2025-12-18 19:06:05 +00:00
variables5.rs Initial commit 2025-12-18 19:06:05 +00:00
variables6.rs Initial commit 2025-12-18 19:06:05 +00:00

Variables

In Rust, variables are immutable by default. When a variable is immutable, once a value is bound to a name, you can’t change that value. You can make them mutable by adding mut in front of the variable name.

Further information