@@ -1660,22 +1660,22 @@ extern "rust-intrinsic" {
1660
1660
/// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
1661
1661
///
1662
1662
/// The stabilized versions of this intrinsic are available on the integer
1663
- /// primitives via the `checked_add ` method. For example,
1664
- /// [`u32::checked_add `]
1663
+ /// primitives via the `wrapping_add ` method. For example,
1664
+ /// [`u32::wrapping_add `]
1665
1665
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1666
1666
pub fn wrapping_add < T : Copy > ( a : T , b : T ) -> T ;
1667
1667
/// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
1668
1668
///
1669
1669
/// The stabilized versions of this intrinsic are available on the integer
1670
- /// primitives via the `checked_sub ` method. For example,
1671
- /// [`u32::checked_sub `]
1670
+ /// primitives via the `wrapping_sub ` method. For example,
1671
+ /// [`u32::wrapping_sub `]
1672
1672
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1673
1673
pub fn wrapping_sub < T : Copy > ( a : T , b : T ) -> T ;
1674
1674
/// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
1675
1675
///
1676
1676
/// The stabilized versions of this intrinsic are available on the integer
1677
- /// primitives via the `checked_mul ` method. For example,
1678
- /// [`u32::checked_mul `]
1677
+ /// primitives via the `wrapping_mul ` method. For example,
1678
+ /// [`u32::wrapping_mul `]
1679
1679
#[ rustc_const_stable( feature = "const_int_wrapping" , since = "1.40.0" ) ]
1680
1680
pub fn wrapping_mul < T : Copy > ( a : T , b : T ) -> T ;
1681
1681
0 commit comments