/// wrapping around at the boundary of the type.
///
/// Such wrap-around never actually occurs mathematically;
- /// implementation artifacts make `x % y` illegal for `MIN /
- /// -1` on a signed type illegal (where `MIN` is the negative
+ /// implementation artifacts make `x % y` invalid for `MIN /
+ /// -1` on a signed type (where `MIN` is the negative
/// minimal value). In such a case, this function returns `0`.
#[stable(feature = "num_wrapping", since = "1.2.0")]
#[inline(always)]
/// wrapping around at the boundary of the type.
///
/// Such wrap-around never actually occurs mathematically;
- /// implementation artifacts make `x % y` illegal for `MIN /
- /// -1` on a signed type illegal (where `MIN` is the negative
+ /// implementation artifacts make `x % y` invalid for `MIN /
+ /// -1` on a signed type (where `MIN` is the negative
/// minimal value). In such a case, this function returns `0`.
#[stable(feature = "num_wrapping", since = "1.2.0")]
#[inline(always)]