Skip to content

Commit 9beee39

Browse files
committed
Add comment to raw_double_bits
1 parent 97a2711 commit 9beee39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,7 @@ impl From<FloatIsNan> for std::io::Error {
13601360
}
13611361

13621362
#[inline]
1363+
/// Used for hashing. Input must not be zero or NaN.
13631364
fn raw_double_bits<F: Float>(f: &F) -> u64 {
13641365
let (man, exp, sign) = f.integer_decode();
13651366
let exp_u64 = exp as u16 as u64;

0 commit comments

Comments
 (0)