mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-07 03:09:19 +00:00
commit
a1e9b6779b
@ -5,14 +5,15 @@
|
||||
//
|
||||
// Execute `rustlings hint if2` or use the `hint` watch subcommand for a hint.
|
||||
|
||||
// I AM NOT DONE
|
||||
|
||||
|
||||
pub fn foo_if_fizz(fizzish: &str) -> &str {
|
||||
if fizzish == "fizz" {
|
||||
"foo"
|
||||
} else {
|
||||
1
|
||||
return "foo"
|
||||
} else if fizzish=="fuzz"{
|
||||
return "bar"
|
||||
}
|
||||
return "baz"
|
||||
}
|
||||
|
||||
// No test changes needed!
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user