mirror of
https://github.com/serde-rs/json.git
synced 2026-03-28 22:20:49 +00:00
Fix NaN typo.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user