]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/num/mod.rs
Tweak `FpCategory` example order.
[rust.git] / library / core / src / num / mod.rs
index f481399fdcf9255404ca6a4eef9e2105f36e5427..fce52a54949b607c4476cb7a38eb5c6998cc7d58 100644 (file)
@@ -936,8 +936,8 @@ pub(crate) const fn repeat_u16(x: u16) -> 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")]