chapter 3

This commit is contained in:
Jasper Ras 2025-08-03 22:29:28 +02:00
parent b442b90c02
commit 5c3e251568
3 changed files with 19 additions and 0 deletions

7
ch3/variables/Cargo.lock generated Normal file
View file

@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "variables"
version = "0.1.0"

6
ch3/variables/Cargo.toml Normal file
View file

@ -0,0 +1,6 @@
[package]
name = "variables"
version = "0.1.0"
edition = "2024"
[dependencies]

View file

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