complete if1

This commit is contained in:
Stirling Hostetter 2022-11-02 11:56:56 -05:00
parent cf1875b784
commit 4cf862c51d

View File

@ -1,9 +1,8 @@
// if1.rs
// Execute `rustlings hint if1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
pub fn bigger(a: i32, b: i32) -> i32 {
return if a > b { a } else { b };
// Complete this function to return the bigger number!
// Do not use:
// - another function call