summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorGuizoul <guizoul.abdellah@ine.inpt.ma>2024-02-28 14:19:05 +0100
committerGuizoul <guizoul.abdellah@ine.inpt.ma>2024-02-28 14:19:05 +0100
commit1da82a0eabdae611519d0c58aff34eb9c792dc90 (patch)
treea88a74b64fc89d92722d518ca61038d3064e4028 /exercises
parent8d0aa11a35f822d044e6be89dc42840e0aea8858 (diff)
docs: Added comment for handling equal numbers in if/if1.rs `bigger` function
Diffstat (limited to 'exercises')
-rw-r--r--exercises/03_if/if1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/exercises/03_if/if1.rs b/exercises/03_if/if1.rs
index 4734d78..38d283c 100644
--- a/exercises/03_if/if1.rs
+++ b/exercises/03_if/if1.rs
@@ -6,6 +6,7 @@
pub fn bigger(a: i32, b: i32) -> i32 {
// Complete this function to return the bigger number!
+ // If both numbers are equal, any of them is returned.
// Do not use:
// - another function call
// - additional variables