This commit is contained in:
2024-04-07 19:53:54 -04:00
parent 459c52137a
commit 64a7939eb7
43 changed files with 141 additions and 160 deletions

View File

@@ -2,17 +2,15 @@
//
// Execute `rustlings hint if3` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
pub fn animal_habitat(animal: &str) -> &'static str {
let identifier = if animal == "crab" {
1
} else if animal == "gopher" {
2.0
2
} else if animal == "snake" {
3
} else {
"Unknown"
4
};
// DO NOT CHANGE THIS STATEMENT BELOW