summaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorliv <mokou@fastmail.com>2024-03-15 20:56:38 +0100
committerGitHub <noreply@github.com>2024-03-15 20:56:38 +0100
commit14ca4e8197a5add4361fe717777b3ebfb2f660b2 (patch)
treeaf1c65201a8d26d73e8fa421cf72b970659ae94c /exercises
parentd8ecf4bc2d34a10149999a7974d5ba71625fab90 (diff)
parentae69f423cd3a3cb795e0864316dfaf6198fd511c (diff)
Merge pull request #1866 from guizo792/guizo792
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..d2afccf 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 can be returned.
// Do not use:
// - another function call
// - additional variables