Skip to content

Commit bd1c2b0

Browse files
rootroot
authored andcommitted
modified: exercises/primitive_types/primitive_types1.rs
modified: exercises/primitive_types/primitive_types2.rs modified: exercises/primitive_types/primitive_types3.rs
1 parent fea3d7d commit bd1c2b0

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

exercises/primitive_types/primitive_types1.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Execute `rustlings hint primitive_types1` or use the `hint` watch subcommand
77
// for a hint.
88

9-
// I AM NOT DONE
109

1110
fn main() {
1211
// Booleans (`bool`)
@@ -16,7 +15,7 @@ fn main() {
1615
println!("Good morning!");
1716
}
1817

19-
let // Finish the rest of this line like the example! Or make it be false!
18+
let is_evening = false;
2019
if is_evening {
2120
println!("Good evening!");
2221
}

exercises/primitive_types/primitive_types2.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// Execute `rustlings hint primitive_types2` or use the `hint` watch subcommand
77
// for a hint.
88

9-
// I AM NOT DONE
109

1110
fn main() {
1211
// Characters (`char`)
@@ -22,9 +21,7 @@ fn main() {
2221
println!("Neither alphabetic nor numeric!");
2322
}
2423

25-
let // Finish this line like the example! What's your favorite character?
26-
// Try a letter, try a number, try a special character, try a character
27-
// from a different language than your own, try an emoji!
24+
let your_character = '🥰';
2825
if your_character.is_alphabetic() {
2926
println!("Alphabetical!");
3027
} else if your_character.is_numeric() {

exercises/primitive_types/primitive_types3.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
// Execute `rustlings hint primitive_types3` or use the `hint` watch subcommand
66
// for a hint.
77

8-
// I AM NOT DONE
98

109
fn main() {
11-
let a = ???
10+
let a = [114514; 101];
1211

1312
if a.len() >= 100 {
1413
println!("Wow, that's a big array!");

0 commit comments

Comments
 (0)