Skip to content

Commit

Permalink
Fix NaN typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothée Haudebourg committed Oct 20, 2021
1 parent 48393ab commit d12fbb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/number.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit d12fbb9

Please sign in to comment.