Skip to content

Commit d53ee47

Browse files
Remove references to wrapping methods
1 parent 768470b commit d53ee47

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/libcore/intrinsics.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -1738,16 +1738,16 @@ extern "rust-intrinsic" {
17381738
/// y < 0 or y >= N, where N is the width of T in bits.
17391739
///
17401740
/// The stabilized versions of this intrinsic are available on the integer
1741-
/// primitives via the `wrapping_shl` method. For example,
1742-
/// [`std::u32::wrapping_shl`](../../std/primitive.u32.html#method.wrapping_shl)
1741+
/// primitives via the `checked_shl` method. For example,
1742+
/// [`std::u32::checked_shl`](../../std/primitive.u32.html#method.checked_shl)
17431743
#[rustc_const_stable(feature = "const_int_unchecked", since = "1.40.0")]
17441744
pub fn unchecked_shl<T>(x: T, y: T) -> T;
17451745
/// Performs an unchecked right shift, resulting in undefined behavior when
17461746
/// y < 0 or y >= N, where N is the width of T in bits.
17471747
///
17481748
/// The stabilized versions of this intrinsic are available on the integer
1749-
/// primitives via the `wrapping_shr` method. For example,
1750-
/// [`std::u32::wrapping_shr`](../../std/primitive.u32.html#method.wrapping_shr)
1749+
/// primitives via the `checked_shr` method. For example,
1750+
/// [`std::u32::checked_shr`](../../std/primitive.u32.html#method.checked_shr)
17511751
#[rustc_const_stable(feature = "const_int_unchecked", since = "1.40.0")]
17521752
pub fn unchecked_shr<T>(x: T, y: T) -> T;
17531753

@@ -1785,22 +1785,22 @@ extern "rust-intrinsic" {
17851785
/// Returns (a + b) mod 2<sup>N</sup>, where N is the width of T in bits.
17861786
///
17871787
/// The stabilized versions of this intrinsic are available on the integer
1788-
/// primitives via the `wrapping_add` method. For example,
1789-
/// [`std::u32::wrapping_add`](../../std/primitive.u32.html#method.wrapping_add)
1788+
/// primitives via the `checked_add` method. For example,
1789+
/// [`std::u32::checked_add`](../../std/primitive.u32.html#method.checked_add)
17901790
#[rustc_const_stable(feature = "const_int_wrapping", since = "1.40.0")]
17911791
pub fn wrapping_add<T>(a: T, b: T) -> T;
17921792
/// Returns (a - b) mod 2<sup>N</sup>, where N is the width of T in bits.
17931793
///
17941794
/// The stabilized versions of this intrinsic are available on the integer
1795-
/// primitives via the `wrapping_sub` method. For example,
1796-
/// [`std::u32::wrapping_sub`](../../std/primitive.u32.html#method.wrapping_sub)
1795+
/// primitives via the `checked_sub` method. For example,
1796+
/// [`std::u32::checked_sub`](../../std/primitive.u32.html#method.checked_sub)
17971797
#[rustc_const_stable(feature = "const_int_wrapping", since = "1.40.0")]
17981798
pub fn wrapping_sub<T>(a: T, b: T) -> T;
17991799
/// Returns (a * b) mod 2<sup>N</sup>, where N is the width of T in bits.
18001800
///
18011801
/// The stabilized versions of this intrinsic are available on the integer
1802-
/// primitives via the `wrapping_mul` method. For example,
1803-
/// [`std::u32::wrapping_mul`](../../std/primitive.u32.html#method.wrapping_mul)
1802+
/// primitives via the `checked_mul` method. For example,
1803+
/// [`std::u32::checked_mul`](../../std/primitive.u32.html#method.checked_mul)
18041804
#[rustc_const_stable(feature = "const_int_wrapping", since = "1.40.0")]
18051805
pub fn wrapping_mul<T>(a: T, b: T) -> T;
18061806

0 commit comments

Comments
 (0)