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. // 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!