Explain changed line in if3 solution

This commit is contained in:
Remo Senekowitsch
2026-05-17 08:49:57 +02:00
parent db3f332507
commit 60b369a2fd
+1
View File
@@ -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