diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-18 16:12:53 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-18 16:22:39 -0500 |
| commit | 84c3c20d440f724cc08b8ef80e16379e84c64cdf (patch) | |
| tree | c6745162467dc6245044cd1d6a55140e34eefdc5 /rustlings/exercises/03_if/if2.rs | |
| parent | 226a48c93ad9ce05ae7b3075d5b4258eedef8d6e (diff) | |
rustlings: complete 03
Diffstat (limited to 'rustlings/exercises/03_if/if2.rs')
| -rw-r--r-- | rustlings/exercises/03_if/if2.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rustlings/exercises/03_if/if2.rs b/rustlings/exercises/03_if/if2.rs index ca8493c..8104487 100644 --- a/rustlings/exercises/03_if/if2.rs +++ b/rustlings/exercises/03_if/if2.rs @@ -2,8 +2,10 @@ fn picky_eater(food: &str) -> &str { if food == "strawberry" { "Yummy!" + } else if food == "potato" { + "I guess I can eat that." } else { - 1 + "No thanks!" } } |