Exercise 15

This commit is contained in:
akshitgautam42 2023-11-11 20:38:43 +05:30
parent 97ee2ccda6
commit 205de86a44

View File

@ -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!