about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPyry Kontio <pyry.kontio@drasa.eu>2020-05-26 04:54:50 +0900
committerPyry Kontio <pyry.kontio@drasa.eu>2020-05-26 05:07:00 +0900
commit8bc31ff9055c50e9d882dd56909dc0b40c3a6453 (patch)
tree3aa3be1aecd7844bec48fe8f33610d14cc0e706a /src
parent6973fd716b51b01debf39edd8e43f0059be3d053 (diff)
downloadrust-8bc31ff9055c50e9d882dd56909dc0b40c3a6453.tar.gz
rust-8bc31ff9055c50e9d882dd56909dc0b40c3a6453.zip
Fix the same typos again orz
Diffstat (limited to 'src')
-rw-r--r--src/libcore/num/f32.rs4
-rw-r--r--src/libcore/num/f64.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs
index 538cca712ca..c54bfb27dfe 100644
--- a/src/libcore/num/f32.rs
+++ b/src/libcore/num/f32.rs
@@ -857,7 +857,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:
@@ -874,7 +874,7 @@ impl f32 {
         // We effectively convert the numbers to "two's complement" form.
         //
         // To do the flipping, we construct a mask and XOR against it.
-        // We branchlessly calculate an "all-ones expect for the sign bit"
+        // We branchlessly calculate an "all-ones except for the sign bit"
         // mask from negative-signed values: right shifting sign-extends
         // the integer, so we "fill" the mask with sign bits, and then
         // convert to unsigned to push one more zero bit.
diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs
index b3ebceb77c2..18d5d720a05 100644
--- a/src/libcore/num/f64.rs
+++ b/src/libcore/num/f64.rs
@@ -871,7 +871,7 @@ impl f64 {
         let mut left = self.to_bits() as i64;
         let mut right = other.to_bits() as i64;
 
-        // 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:
@@ -888,7 +888,7 @@ impl f64 {
         // We effectively convert the numbers to "two's complement" form.
         //
         // To do the flipping, we construct a mask and XOR against it.
-        // We branchlessly calculate an "all-ones expect for the sign bit"
+        // We branchlessly calculate an "all-ones except for the sign bit"
         // mask from negative-signed values: right shifting sign-extends
         // the integer, so we "fill" the mask with sign bits, and then
         // convert to unsigned to push one more zero bit.