Skip to content

Commit

Permalink
Move note about 0 gap to signed integers
Browse files Browse the repository at this point in the history
Was accidentally placed on unsigned integers, where it is not relevant.
  • Loading branch information
nvzqz committed Mar 10, 2022
1 parent fe71c74 commit ecb7927
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions library/core/src/num/nonzero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
/// ```
Expand All @@ -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
///
/// ```
Expand All @@ -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
///
/// ```
Expand All @@ -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
///
/// ```
Expand Down

0 comments on commit ecb7927

Please sign in to comment.