Fix typo in src/libcore/num/f32.rs
Co-authored-by: bluss <bluss@users.noreply.github.com>
This commit is contained in:
parent
b6eec22dd4
commit
d6650e0d2b
1 changed files with 1 additions and 1 deletions
|
|
@ -858,7 +858,7 @@ impl f32 {
|
|||
let mut left = self.to_bits() as i32;
|
||||
let mut right = other.to_bits() as i32;
|
||||
|
||||
// In case of negatives, flip all the bits expect the sign
|
||||
// In case of negatives, flip all the bits except the sign
|
||||
// to achieve a similar layout as two's complement integers
|
||||
//
|
||||
// Why does this work? IEEE 754 floats consist of three fields:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue