From f5708d39ae042143b41cf54d8a764e0f8af49d08 Mon Sep 17 00:00:00 2001 From: Sho Nakatani Date: Fri, 30 Dec 2016 18:06:23 +0900 Subject: [PATCH] fixes functions4 --- functions/functions4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/functions4.rs b/functions/functions4.rs index e514b84f..4b0d923d 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 {