mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-11 13:19:18 +00:00
instatiating a variable
This commit is contained in:
parent
fe71a45ad2
commit
0a9f69fb83
@ -1,7 +1,7 @@
|
||||
// variables2.rs
|
||||
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
|
||||
fn main() {
|
||||
let x: i32 = 10;
|
||||
|
||||
@ -4,6 +4,6 @@
|
||||
// I AM NOT DONE
|
||||
|
||||
fn main() {
|
||||
let x: i32;
|
||||
let x: i32 = 10;
|
||||
println!("Number {}", x);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user