From 97ee2ccda684f0c780a75458cabf29e8fd8030af Mon Sep 17 00:00:00 2001 From: akshitgautam42 Date: Sat, 11 Nov 2023 20:35:41 +0530 Subject: [PATCH] Exercise 14 --- exercises/03_if/if1.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 :)