Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
loyalpartner committed Oct 29, 2023
1 parent a508285 commit df5ac1c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 20 deletions.
4 changes: 1 addition & 3 deletions exercises/intro/intro2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Execute `rustlings hint intro2` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

fn main() {
println!("Hello {}!");
println!("Hello {}!", "world");
}
2 changes: 0 additions & 2 deletions exercises/variables/variables1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// Execute `rustlings hint variables1` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

fn main() {
let x = 5;
println!("x has the value {}", x);
Expand Down
4 changes: 1 addition & 3 deletions exercises/variables/variables2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
// 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 {
Expand Down
4 changes: 1 addition & 3 deletions exercises/variables/variables3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
// Execute `rustlings hint variables3` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

fn main() {
let x: i32;
let x: i32 = 1;
println!("Number {}", x);
}
4 changes: 1 addition & 3 deletions exercises/variables/variables4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
// Execute `rustlings hint variables4` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

fn main() {
let x = 3;
let mut x = 3;
println!("Number {}", x);
x = 5; // don't change this line
println!("Number {}", x);
Expand Down
4 changes: 1 addition & 3 deletions exercises/variables/variables5.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@
// Execute `rustlings hint variables5` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

fn main() {
let number = "T-H-R-E-E"; // don't change this line
println!("Spell a Number : {}", number);
number = 3; // don't rename this variable
let number = 3; // don't rename this variable
println!("Number plus two is : {}", number + 2);
}
4 changes: 1 addition & 3 deletions exercises/variables/variables6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
// Execute `rustlings hint variables6` or use the `hint` watch subcommand for a
// hint.

// I AM NOT DONE

const NUMBER = 3;
const NUMBER:i32 = 3;
fn main() {
println!("Number {}", NUMBER);
}

0 comments on commit df5ac1c

Please sign in to comment.