diff --git a/exercises/03_if/if1.rs b/exercises/03_if/if1.rs index 4734d78f..bc1850c1 100644 --- a/exercises/03_if/if1.rs +++ b/exercises/03_if/if1.rs @@ -2,13 +2,13 @@ // // 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 { - // Complete this function to return the bigger number! - // Do not use: - // - another function call - // - additional variables + if a < b { + return b + } + return a } // Don't mind this for now :)