diff --git a/exercises/03_if/if2.rs b/exercises/03_if/if2.rs index f512f13f..19de2f6c 100644 --- a/exercises/03_if/if2.rs +++ b/exercises/03_if/if2.rs @@ -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!