Skip to content

Commit 84d88f2

Browse files
committed
Fixed some formatting issues.
1 parent b5c1fe1 commit 84d88f2

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

library/core/src/num/nonzero.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -899,23 +899,20 @@ nonzero_unsigned_is_power_of_two! { NonZeroU8 NonZeroU16 NonZeroU32 NonZeroU64 N
899899
macro_rules! nonzero_min_max {
900900
( $( $min:expr , $Ty: ident($Int: ty); )+ ) => {
901901
$(
902-
903902
impl $Ty {
904-
#[unstable(feature = "nonzero_max", issue = "89065")]
903+
#[unstable(feature = "nonzero_max", issue = "89065")]
905904
#[doc = concat!("The maximum value for a`", stringify!($Ty), "` is the same as `", stringify!($Int), "`")]
906905
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MAX, ", stringify!($Int), "::MAX);")]
907-
//SAFETY: Since the MAX value, for any supported integer type, is greater than 0,
908-
// the MAX will always be non-zero.
906+
// SAFETY: Since the MAX value, for any supported integer type, is greater than 0, the MAX will always be non-zero.
909907
pub const MAX : $Ty = unsafe { $Ty::new_unchecked(<$Int>::MAX) };
910908
#[unstable(feature = "nonzero_min", issue = "89065")]
911909
#[doc = concat!("The minimum value for a`", stringify!($Ty), "`.")]
912-
/// # Examples
913-
///
910+
/// # Examples
914911
#[doc = concat!("assert_eq!(", stringify!($Ty), "::MIN, ", stringify!($min), ";")]
915-
//SAFETY: In the signed case, the minimum integer is negative, and therefore non-zero.
916-
// In the unsignedd case, we use one, which is non-zero.
912+
// SAFETY: In the signed case, the minimum integer is negative, and therefore non-zero.
913+
// SAFETY: In the unsignedd case, we use one, which is non-zero.
917914
pub const MIN : $Ty = unsafe { $Ty::new_unchecked($min)};
918-
}
915+
}
919916
)+
920917
}
921918
}

0 commit comments

Comments
 (0)