trpl-zh-cn/listings/ch03-common-programming-concepts/no-listing-02-adding-mut/src/main.rs

7 lines
124 B
Rust
Raw Normal View History

2022-02-06 16:43:51 +08:00
fn main() {
let mut x = 5;
println!("The value of x is: {x}");
2022-02-06 16:43:51 +08:00
x = 6;
println!("The value of x is: {x}");
2022-02-06 16:43:51 +08:00
}