From 8b8e5ac8170d65a9c90ce84844f18f17fe5af3f0 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 16 Oct 2024 16:27:00 +0200 Subject: [PATCH] Add a project for demonstrating branches --- branches/Cargo.lock | 7 +++++++ branches/Cargo.toml | 6 ++++++ branches/src/main.rs | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 branches/Cargo.lock create mode 100644 branches/Cargo.toml create mode 100644 branches/src/main.rs diff --git a/branches/Cargo.lock b/branches/Cargo.lock new file mode 100644 index 0000000..b420e22 --- /dev/null +++ b/branches/Cargo.lock @@ -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" diff --git a/branches/Cargo.toml b/branches/Cargo.toml new file mode 100644 index 0000000..6596455 --- /dev/null +++ b/branches/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "branches" +version = "0.1.0" +edition = "2021" + +[dependencies] diff --git a/branches/src/main.rs b/branches/src/main.rs new file mode 100644 index 0000000..e64a42a --- /dev/null +++ b/branches/src/main.rs @@ -0,0 +1,9 @@ +fn main() { + let number = 3; + + if number < 5 { + println!("condition was true"); + } else { + println!("condition was false"); + } +}