mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
Merge pull request #504 from Ant0wan/quiz2_markers
fix(exercises): adding question mark to quiz2
This commit is contained in:
commit
70da09eae2
|
@ -17,14 +17,14 @@ fn string(arg: String) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
("blue");
|
???("blue");
|
||||||
("red".to_string());
|
???("red".to_string());
|
||||||
(String::from("hi"));
|
???(String::from("hi"));
|
||||||
("rust is fun!".to_owned());
|
???("rust is fun!".to_owned());
|
||||||
("nice weather".into());
|
???("nice weather".into());
|
||||||
(format!("Interpolation {}", "Station"));
|
???(format!("Interpolation {}", "Station"));
|
||||||
(&String::from("abc")[0..1]);
|
???(&String::from("abc")[0..1]);
|
||||||
(" hello there ".trim());
|
???(" hello there ".trim());
|
||||||
("Happy Monday!".to_string().replace("Mon", "Tues"));
|
???("Happy Monday!".to_string().replace("Mon", "Tues"));
|
||||||
("mY sHiFt KeY iS sTiCkY".to_lowercase());
|
???("mY sHiFt KeY iS sTiCkY".to_lowercase());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue