mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 13:19:18 +00:00
variables 2
This commit is contained in:
parent
1a59f67d87
commit
fa3c231e70
@ -1,10 +1,8 @@
|
||||
// variables2.rs
|
||||
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
let x;
|
||||
let x = 10;
|
||||
if x == 10 {
|
||||
println!("x is ten!");
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user