In Rust, variables are immutable by default. We can declare mutable variables using the keyword mut
.
let a = 5; // Immutable
let mut b = 8; // Mutable
In Rust, variables are immutable by default. We can declare mutable variables using the keyword mut
.
let a = 5; // Immutable
let mut b = 8; // Mutable