Commit 0a4a3bd

mo khan <mo@mokhan.ca>
2023-02-24 20:42:59
add 3.1
1 parent 111fadc
Changed files (3)
3.1/variables/src/main.rs
@@ -0,0 +1,6 @@
+fn main() {
+    let mut x = 5;
+    println!("The value of x is: {x}");
+    x = 6;
+    println!("The value of x is: {x}");
+}
3.1/variables/Cargo.lock
@@ -0,0 +1,7 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 3
+
+[[package]]
+name = "variables"
+version = "0.1.0"
3.1/variables/Cargo.toml
@@ -0,0 +1,8 @@
+[package]
+name = "variables"
+version = "0.1.0"
+edition = "2021"
+
+# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
+
+[dependencies]