Skip to content

Commit

Permalink
Rollup merge of #100470 - reitermarkus:patch-1, r=joshtriplett
Browse files Browse the repository at this point in the history
Tweak `FpCategory` example order.

Follow same order for variable declarations and assertions.
  • Loading branch information
matthiaskrgr authored Oct 3, 2022
2 parents eedb512 + 698a3c6 commit c7f1b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/num/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down

0 comments on commit c7f1b8e

Please sign in to comment.