Merge pull request #14 from akshitgautam42/Ex-15

Exercise 15
This commit is contained in:
Akshit Gautam 2023-11-11 20:45:40 +05:30 committed by GitHub
commit a1e9b6779b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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!