From 6fc3210081874e018ca0dc080756df6592ef3480 Mon Sep 17 00:00:00 2001 From: Suman Biswas <89653112+mrsumanbiswas@users.noreply.github.com> Date: Mon, 9 Jan 2023 23:54:25 +0530 Subject: [PATCH] Update if1.rs --- exercises/if/if1.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/exercises/if/if1.rs b/exercises/if/if1.rs index 587e03f8..b2618b51 100644 --- a/exercises/if/if1.rs +++ b/exercises/if/if1.rs @@ -1,13 +1,10 @@ // if1.rs // Execute `rustlings hint if1` or use the `hint` watch subcommand for a hint. -// I AM NOT DONE +// I AM 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 { a } else { b } } // Don't mind this for now :)