diff --git a/solutions/03_if/if3.rs b/solutions/03_if/if3.rs index 571644d4..9405f085 100644 --- a/solutions/03_if/if3.rs +++ b/solutions/03_if/if3.rs @@ -2,6 +2,7 @@ fn animal_habitat(animal: &str) -> &str { let identifier = if animal == "crab" { 1 } else if animal == "gopher" { + // Integer, so that every branch has the same type. 2 } else if animal == "snake" { 3