1
Fork 0

Rollup merge of #100470 - reitermarkus:patch-1, r=joshtriplett

Tweak `FpCategory` example order.

Follow same order for variable declarations and assertions.
This commit is contained in:
Matthias Krüger 2022-10-03 20:58:55 +02:00 committed by GitHub
commit c7f1b8e41d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -976,8 +976,8 @@ impl usize {
/// assert_eq!(num.classify(), FpCategory::Normal);
/// assert_eq!(inf.classify(), FpCategory::Infinite);
/// assert_eq!(zero.classify(), FpCategory::Zero);
/// assert_eq!(nan.classify(), FpCategory::Nan);
/// assert_eq!(sub.classify(), FpCategory::Subnormal);
/// assert_eq!(nan.classify(), FpCategory::Nan);
/// ```
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
#[stable(feature = "rust1", since = "1.0.0")]