diff --git a/exercises/variables/README.md b/exercises/variables/README.md deleted file mode 100644 index 11a7a78a..00000000 --- a/exercises/variables/README.md +++ /dev/null @@ -1,9 +0,0 @@ -# Variables - -In Rust, variables are immutable by default. -When a variable is immutable, once a value is bound to a name, you can’t change that value. -You can make them mutable by adding mut in front of the variable name. - -## Further information - -- [Variables and Mutability](https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html) diff --git a/exercises/variables/variables1.rs b/exercises/variables/variables1.rs deleted file mode 100644 index 8734065c..00000000 --- a/exercises/variables/variables1.rs +++ /dev/null @@ -1,14 +0,0 @@ -// variables1.rs -// Make me compile! Execute the command `rustlings hint variables1` if you want a hint :) - -// About this `I AM NOT DONE` thing: -// We sometimes encourage you to keep trying things on a given exercise, -// 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() { - let x = 5; - println!("x has the value {}", x); -} diff --git a/exercises/variables/variables2 b/exercises/variables/variables2 deleted file mode 100755 index d5e8edbb..00000000 Binary files a/exercises/variables/variables2 and /dev/null differ diff --git a/exercises/variables/variables2.rs b/exercises/variables/variables2.rs deleted file mode 100644 index 246d4aa5..00000000 --- a/exercises/variables/variables2.rs +++ /dev/null @@ -1,14 +0,0 @@ -// variables2.rs -// Make me compile! Execute the command `rustlings hint variables2` if you want a hint :) - -// I AM NOT DONE - -fn main() { - let x; - x=9; - if x == 10 { - println!("Ten!"); - } else { - println!("Not ten!"); - } -} diff --git a/exercises/variables/variables3.rs b/exercises/variables/variables3.rs deleted file mode 100644 index 30ec48ff..00000000 --- a/exercises/variables/variables3.rs +++ /dev/null @@ -1,11 +0,0 @@ -// 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; - println!("Number {}", x); - x = 5; // don't change this line - println!("Number {}", x); -} diff --git a/exercises/variables/variables4.rs b/exercises/variables/variables4.rs deleted file mode 100644 index 77f1e9ab..00000000 --- a/exercises/variables/variables4.rs +++ /dev/null @@ -1,9 +0,0 @@ -// variables4.rs -// Make me compile! Execute the command `rustlings hint variables4` if you want a hint :) - -// I AM NOT DONE - -fn main() { - let x: i32; - println!("Number {}", x); -} diff --git a/exercises/variables/variables5.rs b/exercises/variables/variables5.rs deleted file mode 100644 index 175eebb3..00000000 --- a/exercises/variables/variables5.rs +++ /dev/null @@ -1,11 +0,0 @@ -// variables5.rs -// Make me compile! Execute the command `rustlings hint variables5` if you want 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; - println!("Number plus two is : {}", number + 2); -} diff --git a/exercises/variables/variables6.rs b/exercises/variables/variables6.rs deleted file mode 100644 index 98666914..00000000 --- a/exercises/variables/variables6.rs +++ /dev/null @@ -1,9 +0,0 @@ -// variables6.rs -// Make me compile! Execute the command `rustlings hint variables6` if you want a hint :) - -// I AM NOT DONE - -const NUMBER = 3; -fn main() { - println!("Number {}", NUMBER); -}