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. // 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 { pub fn foo_if_fizz(fizzish: &str) -> &str {
if fizzish == "fizz" { if fizzish == "fizz" {
"foo" return "foo"
} else { } else if fizzish=="fuzz"{
1 return "bar"
} }
return "baz"
} }
// No test changes needed! // No test changes needed!