Explain changed line in if3 solution

This commit is contained in:
Remo Senekowitsch 2026-05-17 08:47:27 +02:00
parent db3f332507
commit 60b369a2fd
No known key found for this signature in database

View File

@ -2,6 +2,7 @@ fn animal_habitat(animal: &str) -> &str {
let identifier = if animal == "crab" { let identifier = if animal == "crab" {
1 1
} else if animal == "gopher" { } else if animal == "gopher" {
// Integer, so that every branch has the same type.
2 2
} else if animal == "snake" { } else if animal == "snake" {
3 3