type Output = Self;
#[inline]
fn bitor(self, rhs: Self) -> Self::Output {
- // Safety: since `self` and `rhs` are both nonzero, the
+ // SAFETY: since `self` and `rhs` are both nonzero, the
// result of the bitwise-or will be nonzero.
unsafe { $Ty::new_unchecked(self.get() | rhs.get()) }
}
type Output = Self;
#[inline]
fn bitor(self, rhs: $Int) -> Self::Output {
- // Safety: since `self` is nonzero, the result of the
+ // SAFETY: since `self` is nonzero, the result of the
// bitwise-or will be nonzero regardless of the value of
// `rhs`.
unsafe { $Ty::new_unchecked(self.get() | rhs) }
type Output = $Ty;
#[inline]
fn bitor(self, rhs: $Ty) -> Self::Output {
- // Safety: since `rhs` is nonzero, the result of the
+ // SAFETY: since `rhs` is nonzero, the result of the
// bitwise-or will be nonzero regardless of the value of
// `self`.
unsafe { $Ty::new_unchecked(self | rhs.get()) }
the boundary of the type.
The only case where such wrapping can occur is when one takes the absolute value of the negative
-minimal value for the type this is a positive value that is too large to represent in the type. In
+minimal value for the type; this is a positive value that is too large to represent in the type. In
such a case, this function returns `MIN` itself.
# Examples
doc_comment! {
concat!("**This method is soft-deprecated.**
-Although using it won’t cause compilation warning,
+Although using it won’t cause a compilation warning,
new code should use [`", stringify!($SelfT), "::MIN", "`](#associatedconstant.MIN) instead.
Returns the smallest value that can be represented by this integer type."),
doc_comment! {
concat!("**This method is soft-deprecated.**
-Although using it won’t cause compilation warning,
+Although using it won’t cause a compilation warning,
new code should use [`", stringify!($SelfT), "::MAX", "`](#associatedconstant.MAX) instead.
Returns the largest value that can be represented by this integer type."),