]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in src/libcore/num/f32.rs
authorPyry Kontio <pyry.kontio@drasa.eu>
Mon, 25 May 2020 17:44:55 +0000 (02:44 +0900)
committerGitHub <noreply@github.com>
Mon, 25 May 2020 17:44:55 +0000 (02:44 +0900)
Co-authored-by: bluss <bluss@users.noreply.github.com>
src/libcore/num/f32.rs

index 47f489c40abb1b166d65c2a9261fc3d0cc98eda3..56c77c8aea0c007393b9406c0f33c4b965a57985 100644 (file)
@@ -874,7 +874,7 @@ pub fn total_cmp(&self, other: &Self) -> crate::cmp::Ordering {
         // 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 {