Skip to content

Commit 698a3c6

Browse files
authored
Tweak FpCategory example order.
1 parent f22819b commit 698a3c6

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
@@ -936,8 +936,8 @@ impl usize {
936936
/// assert_eq!(num.classify(), FpCategory::Normal);
937937
/// assert_eq!(inf.classify(), FpCategory::Infinite);
938938
/// assert_eq!(zero.classify(), FpCategory::Zero);
939-
/// assert_eq!(nan.classify(), FpCategory::Nan);
940939
/// assert_eq!(sub.classify(), FpCategory::Subnormal);
940+
/// assert_eq!(nan.classify(), FpCategory::Nan);
941941
/// ```
942942
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
943943
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)