Skip to content

Commit 60b369a

Browse files
committed
Explain changed line in if3 solution
1 parent db3f332 commit 60b369a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

solutions/03_if/if3.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ fn animal_habitat(animal: &str) -> &str {
22
let identifier = if animal == "crab" {
33
1
44
} else if animal == "gopher" {
5+
// Integer, so that every branch has the same type.
56
2
67
} else if animal == "snake" {
78
3

0 commit comments

Comments
 (0)