Skip to content

Commit f2c5472

Browse files
committed
doc: improve None condition doc for checked_div and checked_rem
1 parent 264af16 commit f2c5472

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcore/num/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ macro_rules! int_impl {
435435
}
436436

437437
/// Checked integer division. Computes `self / rhs`, returning `None`
438-
/// if `rhs == 0` or the operation results in overflow.
438+
/// if `rhs == 0` or the division results in overflow.
439439
///
440440
/// # Examples
441441
///
@@ -457,7 +457,7 @@ macro_rules! int_impl {
457457
}
458458

459459
/// Checked integer remainder. Computes `self % rhs`, returning `None`
460-
/// if `rhs == 0` or the operation results in overflow.
460+
/// if `rhs == 0` or the division results in overflow.
461461
///
462462
/// # Examples
463463
///
@@ -1599,7 +1599,7 @@ macro_rules! uint_impl {
15991599
}
16001600

16011601
/// Checked integer division. Computes `self / rhs`, returning `None`
1602-
/// if `rhs == 0` or the operation results in overflow.
1602+
/// if `rhs == 0`.
16031603
///
16041604
/// # Examples
16051605
///
@@ -1619,7 +1619,7 @@ macro_rules! uint_impl {
16191619
}
16201620

16211621
/// Checked integer remainder. Computes `self % rhs`, returning `None`
1622-
/// if `rhs == 0` or the operation results in overflow.
1622+
/// if `rhs == 0`.
16231623
///
16241624
/// # Examples
16251625
///

0 commit comments

Comments
 (0)