Add a project for demonstrating branches

This commit is contained in:
Manuel Thalmann 2024-10-16 16:27:00 +02:00
parent 683e905215
commit 8b8e5ac817
3 changed files with 22 additions and 0 deletions

7
branches/Cargo.lock generated Normal file
View 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
View file

@ -0,0 +1,6 @@
[package]
name = "branches"
version = "0.1.0"
edition = "2021"
[dependencies]

9
branches/src/main.rs Normal file
View file

@ -0,0 +1,9 @@
fn main() {
let number = 3;
if number < 5 {
println!("condition was true");
} else {
println!("condition was false");
}
}