@@ -1739,19 +1739,19 @@ extern "rust-intrinsic" {
17391739 pub fn mul_with_overflow < T : Copy > ( x : T , y : T ) -> ( T , bool ) ;
17401740
17411741 /// Performs an exact division, resulting in undefined behavior where
1742- /// `x % y != 0` or `y == 0` or `x == T::min_value() && y == -1`
1742+ /// `x % y != 0` or `y == 0` or `x == T::MIN && y == -1`
17431743 pub fn exact_div < T : Copy > ( x : T , y : T ) -> T ;
17441744
17451745 /// Performs an unchecked division, resulting in undefined behavior
1746- /// where y = 0 or x = `T::min_value() ` and y = -1
1746+ /// where y = 0 or x = `T::MIN ` and y = -1
17471747 ///
17481748 /// The stabilized versions of this intrinsic are available on the integer
17491749 /// primitives via the `checked_div` method. For example,
17501750 /// [`std::u32::checked_div`](../../std/primitive.u32.html#method.checked_div)
17511751 #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
17521752 pub fn unchecked_div < T : Copy > ( x : T , y : T ) -> T ;
17531753 /// Returns the remainder of an unchecked division, resulting in
1754- /// undefined behavior where y = 0 or x = `T::min_value() ` and y = -1
1754+ /// undefined behavior where y = 0 or x = `T::MIN ` and y = -1
17551755 ///
17561756 /// The stabilized versions of this intrinsic are available on the integer
17571757 /// primitives via the `checked_rem` method. For example,
@@ -1777,17 +1777,17 @@ extern "rust-intrinsic" {
17771777 pub fn unchecked_shr < T : Copy > ( x : T , y : T ) -> T ;
17781778
17791779 /// Returns the result of an unchecked addition, resulting in
1780- /// undefined behavior when `x + y > T::max_value() ` or `x + y < T::min_value() `.
1780+ /// undefined behavior when `x + y > T::MAX ` or `x + y < T::MIN `.
17811781 #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
17821782 pub fn unchecked_add < T : Copy > ( x : T , y : T ) -> T ;
17831783
17841784 /// Returns the result of an unchecked subtraction, resulting in
1785- /// undefined behavior when `x - y > T::max_value() ` or `x - y < T::min_value() `.
1785+ /// undefined behavior when `x - y > T::MAX ` or `x - y < T::MIN `.
17861786 #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
17871787 pub fn unchecked_sub < T : Copy > ( x : T , y : T ) -> T ;
17881788
17891789 /// Returns the result of an unchecked multiplication, resulting in
1790- /// undefined behavior when `x * y > T::max_value() ` or `x * y < T::min_value() `.
1790+ /// undefined behavior when `x * y > T::MAX ` or `x * y < T::MIN `.
17911791 #[ rustc_const_unstable( feature = "const_int_unchecked_arith" , issue = "none" ) ]
17921792 pub fn unchecked_mul < T : Copy > ( x : T , y : T ) -> T ;
17931793
0 commit comments