summaryrefslogtreecommitdiff
path: root/variables/src/main.rs
diff options
context:
space:
mode:
authorJasper Ras <jaspert.ras@gmail.com>2025-02-19 21:00:48 +0100
committerJasper Ras <jaspert.ras@gmail.com>2025-02-19 21:00:48 +0100
commit36b711944bd962456c044287f0288ed5b93e62b7 (patch)
tree3486f09afe705e6d6dcb9e7b4ce56057026b2b02 /variables/src/main.rs
parent2306e4e6912930c83917c8abce03106a85931e4e (diff)
progressing through chapter 3
Diffstat (limited to 'variables/src/main.rs')
-rw-r--r--variables/src/main.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/variables/src/main.rs b/variables/src/main.rs
new file mode 100644
index 0000000..a57709c
--- /dev/null
+++ b/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}");
+}