@@ -459,7 +459,7 @@ pub const fn unlikely(b: bool) -> bool {
459
459
/// Therefore, implementations must not require the user to uphold
460
460
/// any safety invariants.
461
461
///
462
- /// The public form of this instrinsic is [`core::hint::select_unpredictable`].
462
+ /// The public form of this intrinsic is [`core::hint::select_unpredictable`].
463
463
/// However unlike the public form, the intrinsic will not drop the value that
464
464
/// is not selected.
465
465
#[ unstable( feature = "core_intrinsics" , issue = "none" ) ]
@@ -2295,7 +2295,7 @@ where
2295
2295
/// used inside the `if const`.
2296
2296
/// Note that the two arms of this `if` really each become their own function, which is why the
2297
2297
/// macro supports setting attributes for those functions. The runtime function is always
2298
- /// markes as `#[inline]`.
2298
+ /// marked as `#[inline]`.
2299
2299
///
2300
2300
/// See [`const_eval_select()`] for the rules and requirements around that intrinsic.
2301
2301
pub ( crate ) macro const_eval_select {
@@ -2535,7 +2535,7 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
2535
2535
/// Returns whether we should perform contract-checking at runtime.
2536
2536
///
2537
2537
/// This is meant to be similar to the ub_checks intrinsic, in terms
2538
- /// of not prematurely commiting at compile-time to whether contract
2538
+ /// of not prematurely committing at compile-time to whether contract
2539
2539
/// checking is turned on, so that we can specify contracts in libstd
2540
2540
/// and let an end user opt into turning them on.
2541
2541
#[ rustc_const_unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
0 commit comments