Update variables1.rs

Déclarer et initialiser la variable x avec le mot-clé let.
This commit is contained in:
Medinand PANDI 2024-06-06 06:16:31 +02:00 committed by GitHub
parent d140d49b61
commit 4a9cb80e8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,9 +5,9 @@
// Execute `rustlings hint variables1` or use the `hint` watch subcommand for a // Execute `rustlings hint variables1` or use the `hint` watch subcommand for a
// hint. // hint.
// I AM NOT DONE
fn main() { fn main() {
x = 5; let x = 5;
println!("x has the value {}", x); println!("x has the value {}", x);
} }