From 60b369a2fdbae2a664cb54283bf8b1407f141c91 Mon Sep 17 00:00:00 2001 From: Remo Senekowitsch Date: Sun, 17 May 2026 08:47:27 +0200 Subject: [PATCH] Explain changed line in if3 solution --- solutions/03_if/if3.rs | 1 + 1 file changed, 1 insertion(+) 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