about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNikolai Vazquez <hello@nikolaivazquez.com>2022-03-10 17:52:48 -0500
committerNikolai Vazquez <hello@nikolaivazquez.com>2022-03-10 17:52:48 -0500
commitecb792705077c6e6c116146cc797727a2cba4c47 (patch)
tree0e9892c1b302bec0cf01b03023e28856a107d274
parentfe71c7431a0a1ae93436bf646df3676dc215ed86 (diff)
downloadrust-ecb792705077c6e6c116146cc797727a2cba4c47.tar.gz
rust-ecb792705077c6e6c116146cc797727a2cba4c47.zip
Move note about 0 gap to signed integers
Was accidentally placed on unsigned integers, where it is not relevant.
-rw-r--r--library/core/src/num/nonzero.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/library/core/src/num/nonzero.rs b/library/core/src/num/nonzero.rs
index a32631a06a5..584e8a881df 100644
--- a/library/core/src/num/nonzero.rs
+++ b/library/core/src/num/nonzero.rs
@@ -996,10 +996,6 @@ macro_rules! nonzero_min_max_unsigned {
                 /// The smallest value that can be represented by this non-zero
                 /// integer type, 1.
                 ///
-                /// Note: While most integer types are defined for every whole
-                /// number between `MIN` and `MAX`, signed non-zero integers are
-                /// a special case. They have a "gap" at 0.
-                ///
                 /// # Examples
                 ///
                 /// ```
@@ -1015,10 +1011,6 @@ macro_rules! nonzero_min_max_unsigned {
                 /// integer type,
                 #[doc = concat!("equal to [`", stringify!($Int), "::MAX`].")]
                 ///
-                /// Note: While most integer types are defined for every whole
-                /// number between `MIN` and `MAX`, signed non-zero integers are
-                /// a special case. They have a "gap" at 0.
-                ///
                 /// # Examples
                 ///
                 /// ```
@@ -1042,6 +1034,10 @@ macro_rules! nonzero_min_max_signed {
                 /// integer type,
                 #[doc = concat!("equal to [`", stringify!($Int), "::MIN`].")]
                 ///
+                /// Note: While most integer types are defined for every whole
+                /// number between `MIN` and `MAX`, signed non-zero integers are
+                /// a special case. They have a "gap" at 0.
+                ///
                 /// # Examples
                 ///
                 /// ```
@@ -1057,6 +1053,10 @@ macro_rules! nonzero_min_max_signed {
                 /// integer type,
                 #[doc = concat!("equal to [`", stringify!($Int), "::MAX`].")]
                 ///
+                /// Note: While most integer types are defined for every whole
+                /// number between `MIN` and `MAX`, signed non-zero integers are
+                /// a special case. They have a "gap" at 0.
+                ///
                 /// # Examples
                 ///
                 /// ```