diff options
author | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-19 21:00:48 +0100 |
---|---|---|
committer | Jasper Ras <jaspert.ras@gmail.com> | 2025-02-19 21:00:48 +0100 |
commit | 36b711944bd962456c044287f0288ed5b93e62b7 (patch) | |
tree | 3486f09afe705e6d6dcb9e7b4ce56057026b2b02 /variables/src/main.rs | |
parent | 2306e4e6912930c83917c8abce03106a85931e4e (diff) |
progressing through chapter 3
Diffstat (limited to 'variables/src/main.rs')
-rw-r--r-- | variables/src/main.rs | 6 |
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}"); +} |