about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-10-03 20:58:55 +0200
committerGitHub <noreply@github.com>2022-10-03 20:58:55 +0200
commitc7f1b8e41d45f54b080c9e816565d72756bf2416 (patch)
treeb8a6a581c681a572eb8a2f360e9ebdb7c2bf0afd
parenteedb51210cf1c44be8e4a05ad41ca9709bbcdfc3 (diff)
parent698a3c679811fbde878148e742a6db591a13d89e (diff)
downloadrust-c7f1b8e41d45f54b080c9e816565d72756bf2416.tar.gz
rust-c7f1b8e41d45f54b080c9e816565d72756bf2416.zip
Rollup merge of #100470 - reitermarkus:patch-1, r=joshtriplett
Tweak `FpCategory` example order.

Follow same order for variable declarations and assertions.
-rw-r--r--library/core/src/num/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs
index c0be235c120..59e5187c5f2 100644
--- a/library/core/src/num/mod.rs
+++ b/library/core/src/num/mod.rs
@@ -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")]