Create a project for testing variables
This commit is contained in:
parent
21a351914f
commit
f98580a681
7
variables/Cargo.lock
generated
Normal file
7
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 = 3
|
||||
|
||||
[[package]]
|
||||
name = "variables"
|
||||
version = "0.1.0"
|
6
variables/Cargo.toml
Normal file
6
variables/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "variables"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
6
variables/src/main.rs
Normal file
6
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…
Reference in a new issue