We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
f64::to_bits
1 parent 9046e3f commit 48393abCopy full SHA for 48393ab
src/number.rs
@@ -54,7 +54,7 @@ impl core::hash::Hash for N {
54
N::PosInt(i) => i.hash(h),
55
N::NegInt(i) => i.hash(h),
56
N::Float(f) => {
57
- // Using `f64::to_bits` here is fine since any float values are always finite.
+ // Using `f64::to_bits` here is fine since any float values are never `Nan`.
58
f.to_bits().hash(h);
59
}
60
0 commit comments