Fix typo in src/libcore/num/f32.rs

Co-authored-by: bluss <bluss@users.noreply.github.com>
This commit is contained in:
Pyry Kontio 2020-05-26 02:44:55 +09:00 committed by GitHub
parent 68bab3e56e
commit b6eec22dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -874,7 +874,7 @@ impl f32 {
// flip the exponent and mantissa bits in case of negative numbers.
// We effectively convert the numbers to "two's complement" form.
if left < 0 {
// i32::MAX corresponds the bit pattern of "all ones expect for the sign bit"
// i32::MAX corresponds the bit pattern of "all ones except for the sign bit"
left ^= i32::MAX
};
if right < 0 {