chapter 3
This commit is contained in:
parent
b442b90c02
commit
5c3e251568
3 changed files with 19 additions and 0 deletions
7
ch3/variables/Cargo.lock
generated
Normal file
7
ch3/variables/Cargo.lock
generated
Normal 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
6
ch3/variables/Cargo.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
[package]
|
||||||
|
name = "variables"
|
||||||
|
version = "0.1.0"
|
||||||
|
edition = "2024"
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
6
ch3/variables/src/main.rs
Normal file
6
ch3/variables/src/main.rs
Normal 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}");
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue