Skip to content

Commit 104c64d

Browse files
author
Daiki Mizukami
committed
core: Minor cleanup
1 parent fbb1c28 commit 104c64d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,7 @@ assert_eq!((-a).mod_euc(-b), 1);
17651765
pub fn mod_euc(self, rhs: Self) -> Self {
17661766
let r = self % rhs;
17671767
if r < 0 {
1768-
if rhs.is_negative() {
1768+
if rhs < 0 {
17691769
r - rhs
17701770
} else {
17711771
r + rhs

0 commit comments

Comments
 (0)