Rustbook up through ch03-01
This commit is contained in:
parent
93f3ea5863
commit
85e8a9b8ea
2
rustbook/.gitignore
vendored
Normal file
2
rustbook/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
*/target/
|
||||
*/Cargo.lock
|
6
rustbook/variables/Cargo.toml
Normal file
6
rustbook/variables/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "variables"
|
||||
version = "0.1.0"
|
||||
authors = ["Dan Buch <daniel.buch@gmail.com>"]
|
||||
|
||||
[dependencies]
|
6
rustbook/variables/src/main.rs
Normal file
6
rustbook/variables/src/main.rs
Normal 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);
|
||||
}
|
Loading…
Reference in New Issue
Block a user