control flow, primitive types and vectors
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