rustlings/exercises/01_variables
2024-05-12 13:33:53 +05:30
..
README.md Update Exercises Directory Names to Reflect Order 2023-10-16 07:37:12 -04:00
variables1.rs Solve first 48 exercises (50%) 2024-05-12 13:33:53 +05:30
variables2.rs Solve first 48 exercises (50%) 2024-05-12 13:33:53 +05:30
variables3.rs Solve first 48 exercises (50%) 2024-05-12 13:33:53 +05:30
variables4.rs Solve first 48 exercises (50%) 2024-05-12 13:33:53 +05:30
variables5.rs Solve first 48 exercises (50%) 2024-05-12 13:33:53 +05:30
variables6.rs Solve first 48 exercises (50%) 2024-05-12 13:33:53 +05:30

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