fixes functions4

This commit is contained in:
Sho Nakatani 2016-12-30 18:06:23 +09:00
parent d928df0942
commit f5708d39ae

View file

@ -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 {