Move tons of stuff into oldstuff/
This commit is contained in:
6
oldstuff/rustbook/variables/Cargo.toml
Normal file
6
oldstuff/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]
|
9
oldstuff/rustbook/variables/src/main.rs
Normal file
9
oldstuff/rustbook/variables/src/main.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
fn main() {
|
||||
let x = 5;
|
||||
|
||||
let x = x + 1;
|
||||
|
||||
let x = x * 2;
|
||||
|
||||
println!("The value of x is: {}", x);
|
||||
}
|
Reference in New Issue
Block a user