Add a project for demonstrating branches
This commit is contained in:
parent
683e905215
commit
8b8e5ac817
3 changed files with 22 additions and 0 deletions
7
branches/Cargo.lock
generated
Normal file
7
branches/Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "branches"
|
||||
version = "0.1.0"
|
6
branches/Cargo.toml
Normal file
6
branches/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "branches"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
9
branches/src/main.rs
Normal file
9
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…
Reference in a new issue