Rustbook up through ch03-01

This commit is contained in:
Dan Buch 2017-12-21 23:23:18 -05:00
parent 93f3ea5863
commit 85e8a9b8ea
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7
3 changed files with 14 additions and 0 deletions

2
rustbook/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*/target/
*/Cargo.lock

View File

@ -0,0 +1,6 @@
[package]
name = "variables"
version = "0.1.0"
authors = ["Dan Buch <daniel.buch@gmail.com>"]
[dependencies]

View File

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