Add missing return type

This commit is contained in:
Mukund 2024-05-30 00:07:40 +05:30 committed by GitHub
parent c7a18b0781
commit 53f805ce7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,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 {