branching time
This commit is contained in:
parent
9136ef39c4
commit
462d440f1f
6
rustbook/branches/Cargo.toml
Normal file
6
rustbook/branches/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[package]
|
||||||
|
name = "branches"
|
||||||
|
version = "0.1.0"
|
||||||
|
authors = ["Dan Buch <daniel.buch@gmail.com>"]
|
||||||
|
|
||||||
|
[dependencies]
|
9
rustbook/branches/src/main.rs
Normal file
9
rustbook/branches/src/main.rs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
fn main() {
|
||||||
|
let number = 3;
|
||||||
|
|
||||||
|
if number < 5 {
|
||||||
|
println!("condition was true");
|
||||||
|
} else {
|
||||||
|
println!("condition was false");
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user