rustlings/exercises/01_variables
Tuan-Dat Tran a3e2bc985c Initial commit
Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
2024-09-01 19:20:40 +02:00
..
README.md Initial commit 2024-09-01 19:20:40 +02:00
variables1.rs Initial commit 2024-09-01 19:20:40 +02:00
variables2.rs Initial commit 2024-09-01 19:20:40 +02:00
variables3.rs Initial commit 2024-09-01 19:20:40 +02:00
variables4.rs Initial commit 2024-09-01 19:20:40 +02:00
variables5.rs Initial commit 2024-09-01 19:20:40 +02:00
variables6.rs Initial commit 2024-09-01 19:20:40 +02:00

README.md

Variables

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

Further information