mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 21:29:18 +00:00
Some more reading required on the following: - `move_semantics` aka ownership and borrowing. - `enums` especially using with match expressions.
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.