mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-06 18:13:29 +02:00
done until quiz1
This commit is contained in:
@@ -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!"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user