]> git.lizzy.rs Git - rust.git/commitdiff
Correct typo
authorDezhi Wu <wu543065657@163.com>
Thu, 18 Aug 2022 08:36:49 +0000 (16:36 +0800)
committerDezhi Wu <wu543065657@163.com>
Wed, 31 Aug 2022 10:25:00 +0000 (18:25 +0800)
RELEASES.md
compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
library/core/src/slice/mod.rs
library/std/src/sys/windows/cmath.rs

index 5de300394178efaf978f59537a9b05dfbf71c7b2..72b2c16a01f83b63ce9d1f448ab652c21aeb5450 100644 (file)
@@ -1442,7 +1442,7 @@ Compatibility Notes
 - [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
 - [Previously unsound code is no longer permitted where different constructors in branches
   could require different lifetimes.][85574]
-- As previously mentioned the [`std::arch` intrinsic now uses stricter const checking][83278]
+- As previously mentioned the [`std::arch` intrinsics now uses stricter const checking][83278]
   than before and may reject some previously accepted code.
 - [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
    when compiled with `codegen-units = 1`.][86063]
index 4aeb1e3aab95334f97c33398923ab7b57e43c44f..39e9e784a478b12a68268e2fa6c0b6209f864365 100644 (file)
@@ -203,7 +203,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
             sym::transmute => {
                 crate::base::codegen_panic(fx, "Transmuting to uninhabited type.", source_info);
             }
-            _ => unimplemented!("unsupported intrinsics {}", intrinsic),
+            _ => unimplemented!("unsupported intrinsic {}", intrinsic),
         }
         return;
     };
index 3bd296f37cafda4673473997b5cdf0e1c9091288..1958745b5868c79f240b45087db2c272608503ce 100644 (file)
@@ -2321,7 +2321,7 @@ pub fn strip_suffix<P: SlicePattern<Item = T> + ?Sized>(&self, suffix: &P) -> Op
     }
 
     /// Binary searches this slice for a given element.
-    /// This behaves similar to [`contains`] if this slice is sorted.
+    /// This behaves similarly to [`contains`] if this slice is sorted.
     ///
     /// If the value is found then [`Result::Ok`] is returned, containing the
     /// index of the matching element. If there are multiple matches, then any
index 74bb552527f64fec399b4ebde58a07b4bb7865dc..43ab8c7ee659f5e08d6d7815c27c2d3ff21897c8 100644 (file)
@@ -44,7 +44,7 @@ mod shims {
 }
 
 // On 32-bit x86 MSVC these functions aren't defined, so we just define shims
-// which promote everything for f64, perform the calculation, and then demote
+// which promote everything to f64, perform the calculation, and then demote
 // back to f32. While not precisely correct should be "correct enough" for now.
 #[cfg(all(target_env = "msvc", target_arch = "x86"))]
 mod shims {