Skip to content

Commit 14ca4e8

Browse files
authored
Merge pull request #1866 from guizo792/guizo792
docs: Added comment for handling equal numbers in if/if1.rs `bigger` function
2 parents d8ecf4b + ae69f42 commit 14ca4e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

exercises/03_if/if1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
pub fn bigger(a: i32, b: i32) -> i32 {
88
// Complete this function to return the bigger number!
9+
// If both numbers are equal, any of them can be returned.
910
// Do not use:
1011
// - another function call
1112
// - additional variables

0 commit comments

Comments
 (0)