mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-10 12:49:18 +00:00
cache chapter 3.0
This commit is contained in:
parent
116919c133
commit
7edf4a7888
7
projects/variables/Cargo.lock
generated
Normal file
7
projects/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"
|
||||
8
projects/variables/Cargo.toml
Normal file
8
projects/variables/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "variables"
|
||||
version = "0.1.0"
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
8
projects/variables/src/main.rs
Normal file
8
projects/variables/src/main.rs
Normal file
@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
const MAX_POINTS: u32 = 100_000;
|
||||
// let x = 5;
|
||||
let mut x = 5;
|
||||
println!("The value of x is: {}", x);
|
||||
x = 6;
|
||||
println!("The value of x is: {}", x);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user