returning a type

This commit is contained in:
Hariettemaina 2022-09-09 15:04:07 +03:00
parent cdbf513840
commit 741b313bd2
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// functions3.rs
// Execute `rustlings hint functions3` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
call_me(3);

View File

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