diff options
| author | Pyry Kontio <pyry.kontio@drasa.eu> | 2020-05-26 02:44:55 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-26 02:44:55 +0900 |
| commit | b6eec22dd49b74eda4257d0fd634fa179de9c2ec (patch) | |
| tree | 5b907eb3913c15f1c88cc9ffdd8ff6c7dd08b280 | |
| parent | 68bab3e56e7df618c093f5b93901f5319ef65997 (diff) | |
| download | rust-b6eec22dd49b74eda4257d0fd634fa179de9c2ec.tar.gz rust-b6eec22dd49b74eda4257d0fd634fa179de9c2ec.zip | |
Fix typo in src/libcore/num/f32.rs
Co-authored-by: bluss <bluss@users.noreply.github.com>
| -rw-r--r-- | src/libcore/num/f32.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index 47f489c40ab..56c77c8aea0 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -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 { |
