diff --git a/functions/functions4.rs b/functions/functions4.rs index e514b84..4b0d923 100644 --- a/functions/functions4.rs +++ b/functions/functions4.rs @@ -8,7 +8,7 @@ fn main() { println!("Your sale price is {}", sale_price(original_price)); } -fn sale_price(price: i32) -> { +fn sale_price(price: i32) -> i32 { if is_even(price) { price - 10 } else {