first steps

This commit is contained in:
Toby Devlin 2020-02-10 21:52:17 +00:00
parent 4b79691d5e
commit 5e8bb85aed
3 changed files with 3 additions and 6 deletions

View file

@ -6,9 +6,8 @@
// even after you already figured it out. If you got everything working and
// feel ready for the next exercise, remove the `I AM NOT DONE` comment below.
// I AM NOT DONE
fn main() {
x = 5;
let x = 5;
println!("x has the value {}", x);
}

View file

@ -1,10 +1,9 @@
// variables2.rs
// Make me compile! Execute the command `rustlings hint variables2` if you want a hint :)
// I AM NOT DONE
fn main() {
let x;
let x = 32;
if x == 10 {
println!("Ten!");
} else {

View file

@ -1,10 +1,9 @@
// variables3.rs
// Make me compile! Execute the command `rustlings hint variables3` if you want a hint :)
// I AM NOT DONE
fn main() {
let x = 3;
let mut x = 3;
println!("Number {}", x);
x = 5;
println!("Number {}", x);