From 84c3c20d440f724cc08b8ef80e16379e84c64cdf Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Fri, 18 Sep 2026 16:12:53 -0500 Subject: rustlings: complete 03 --- rustlings/exercises/03_if/if3.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'rustlings/exercises/03_if/if3.rs') diff --git a/rustlings/exercises/03_if/if3.rs b/rustlings/exercises/03_if/if3.rs index 89164eb..fee96f8 100644 --- a/rustlings/exercises/03_if/if3.rs +++ b/rustlings/exercises/03_if/if3.rs @@ -1,13 +1,12 @@ fn animal_habitat(animal: &str) -> &str { - // TODO: Fix the compiler error in the statement below. let identifier = if animal == "crab" { 1 } else if animal == "gopher" { - 2.0 + 2 } else if animal == "snake" { 3 } else { - "Unknown" + 0 }; // Don't change the expression below! -- cgit v1.2.3