Fix NaN typo.

This commit is contained in:
Timothée Haudebourg
2021-10-20 14:25:51 +02:00
parent 48393aba40
commit d12fbb9520

View File

@@ -54,7 +54,7 @@ impl core::hash::Hash for N {
N::PosInt(i) => i.hash(h),
N::NegInt(i) => i.hash(h),
N::Float(f) => {
// Using `f64::to_bits` here is fine since any float values are never `Nan`.
// Using `f64::to_bits` here is fine since any float values are never `NaN`.
f.to_bits().hash(h);
}
}