Skip to content

Commit 1770693

Browse files
committed
Correct typo
1 parent 85fc39c commit 1770693

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

RELEASES.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ Compatibility Notes
14421442
- [Mixing Option and Result via `?` is no longer permitted in closures for inferred types.][86831]
14431443
- [Previously unsound code is no longer permitted where different constructors in branches
14441444
could require different lifetimes.][85574]
1445-
- As previously mentioned the [`std::arch` intrinsic now uses stricter const checking][83278]
1445+
- As previously mentioned the [`std::arch` intrinsics now uses stricter const checking][83278]
14461446
than before and may reject some previously accepted code.
14471447
- [`i128` multiplication on Cortex M0+ platforms currently unconditionally causes overflow
14481448
when compiled with `codegen-units = 1`.][86063]

compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub(crate) fn codegen_intrinsic_call<'tcx>(
203203
sym::transmute => {
204204
crate::base::codegen_panic(fx, "Transmuting to uninhabited type.", source_info);
205205
}
206-
_ => unimplemented!("unsupported intrinsics {}", intrinsic),
206+
_ => unimplemented!("unsupported intrinsic {}", intrinsic),
207207
}
208208
return;
209209
};

library/core/src/slice/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2321,7 +2321,7 @@ impl<T> [T] {
23212321
}
23222322

23232323
/// Binary searches this slice for a given element.
2324-
/// This behaves similar to [`contains`] if this slice is sorted.
2324+
/// This behaves similarly to [`contains`] if this slice is sorted.
23252325
///
23262326
/// If the value is found then [`Result::Ok`] is returned, containing the
23272327
/// index of the matching element. If there are multiple matches, then any

library/std/src/sys/windows/cmath.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ mod shims {
4444
}
4545

4646
// On 32-bit x86 MSVC these functions aren't defined, so we just define shims
47-
// which promote everything for f64, perform the calculation, and then demote
47+
// which promote everything to f64, perform the calculation, and then demote
4848
// back to f32. While not precisely correct should be "correct enough" for now.
4949
#[cfg(all(target_env = "msvc", target_arch = "x86"))]
5050
mod shims {

0 commit comments

Comments
 (0)