More var stuff

This commit is contained in:
Dan Buch
2017-12-22 08:52:25 -05:00
parent 85e8a9b8ea
commit 4f55c0c186

View File

@@ -1,6 +1,9 @@
fn main() {
let mut x = 5;
println!("The value of x is: {}", x);
x = 6;
let x = 5;
let x = x + 1;
let x = x * 2;
println!("The value of x is: {}", x);
}