diff options
Diffstat (limited to 'rustlings/exercises/03_if/if1.rs')
| -rw-r--r-- | rustlings/exercises/03_if/if1.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rustlings/exercises/03_if/if1.rs b/rustlings/exercises/03_if/if1.rs index e5a3c5a..079c671 100644 --- a/rustlings/exercises/03_if/if1.rs +++ b/rustlings/exercises/03_if/if1.rs @@ -1,9 +1,9 @@ fn bigger(a: i32, b: i32) -> i32 { - // TODO: Complete this function to return the bigger number! - // If both numbers are equal, any of them can be returned. - // Do not use: - // - another function call - // - additional variables + if a > b { + a + } else { + b + } } fn main() { |