From f2c5472ed5dd2b38711375c469c54536e51e9cf3 Mon Sep 17 00:00:00 2001 From: Trevor Spiteri Date: Fri, 22 Dec 2017 15:09:51 +0100 Subject: [PATCH] doc: improve None condition doc for `checked_div` and `checked_rem` --- src/libcore/num/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index 851c0a0dd6f75..788b4417d9974 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -435,7 +435,7 @@ macro_rules! int_impl { } /// Checked integer division. Computes `self / rhs`, returning `None` - /// if `rhs == 0` or the operation results in overflow. + /// if `rhs == 0` or the division results in overflow. /// /// # Examples /// @@ -457,7 +457,7 @@ macro_rules! int_impl { } /// Checked integer remainder. Computes `self % rhs`, returning `None` - /// if `rhs == 0` or the operation results in overflow. + /// if `rhs == 0` or the division results in overflow. /// /// # Examples /// @@ -1599,7 +1599,7 @@ macro_rules! uint_impl { } /// Checked integer division. Computes `self / rhs`, returning `None` - /// if `rhs == 0` or the operation results in overflow. + /// if `rhs == 0`. /// /// # Examples /// @@ -1619,7 +1619,7 @@ macro_rules! uint_impl { } /// Checked integer remainder. Computes `self % rhs`, returning `None` - /// if `rhs == 0` or the operation results in overflow. + /// if `rhs == 0`. /// /// # Examples ///