chapter 3
This commit is contained in:
parent
b442b90c02
commit
5c3e251568
3 changed files with 19 additions and 0 deletions
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