Skip to content

Commit c7f1b8e

Browse files
authored
Rollup merge of #100470 - reitermarkus:patch-1, r=joshtriplett
Tweak `FpCategory` example order. Follow same order for variable declarations and assertions.
2 parents eedb512 + 698a3c6 commit c7f1b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,8 @@ impl usize {
976976
/// assert_eq!(num.classify(), FpCategory::Normal);
977977
/// assert_eq!(inf.classify(), FpCategory::Infinite);
978978
/// assert_eq!(zero.classify(), FpCategory::Zero);
979-
/// assert_eq!(nan.classify(), FpCategory::Nan);
980979
/// assert_eq!(sub.classify(), FpCategory::Subnormal);
980+
/// assert_eq!(nan.classify(), FpCategory::Nan);
981981
/// ```
982982
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
983983
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)