Merge 5a3f75f2402d4752b00b6fb4551d1f540677f1e5 into 37cbcd9049627653a46f3a90d0d5dd5468464e1c

This commit is contained in:
Polycarbohydrate 2026-03-28 04:37:15 +00:00 committed by GitHub
commit 3bcf2c3402
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,8 @@ 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" {
// all branches of an if expression must return the same type
// so we change from f64 to i32
2 2
} else if animal == "snake" { } else if animal == "snake" {
3 3