book/listings/ch03-common-programming-con.../no-listing-02-adding-mut/src/main.rs

7 lines
128 B
Rust

fn main() {
let mut x = 5;
println!("The value of x is: {}", x);
x = 6;
println!("The value of x is: {}", x);
}