diff --git a/src/int/add.rs b/src/int/add.rs index a18e4b238..729accefd 100644 --- a/src/int/add.rs +++ b/src/int/add.rs @@ -21,8 +21,8 @@ impl Int { // Step 2. determine whether overflow happened. // Note: - // - overflow can only happen when the inputs have the same sign, and then - // - overflow occurs if and only if the result has the opposite sign of both inputs. + // - overflow can only happen when the inputs have the same sign, and + // - overflow occurs if and only if the result has the opposite sign from both inputs. // // We can thus express the overflow flag as: (self.msb == rhs.msb) & (self.msb != res.msb) let self_msb = self.is_negative(); diff --git a/src/int/sign.rs b/src/int/sign.rs index e8bd3ed0d..f49fe4623 100644 --- a/src/int/sign.rs +++ b/src/int/sign.rs @@ -3,7 +3,7 @@ use num_traits::ConstZero; impl Int { /// Returns the word of most significant [`Limb`]. - /// For the generative case where the number of limbs is zero, + /// For the degenerate case where the number of limbs is zero, /// zeroed word is returned (which is semantically correct). /// This method leaks the limb length of the value, which is also OK. const fn most_significant_word(&self) -> Word { diff --git a/src/int/sub.rs b/src/int/sub.rs index 54b25060c..371351005 100644 --- a/src/int/sub.rs +++ b/src/int/sub.rs @@ -16,7 +16,7 @@ impl Int { // Step 2. check whether underflow happened. // Note: - // - underflow can only happen when the inputs have opposing signs, and then + // - underflow can only happen when the inputs have opposing signs, and // - underflow occurs if and only if the result and the lhs have opposing signs. // // We can thus express the overflow flag as: (self.msb != rhs.msb) & (self.msb != res.msb)