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"); + } +}