@@ -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" ) ]
@@ -2290,7 +2290,7 @@ where
2290
2290
/// used inside the `if const`.
2291
2291
/// Note that the two arms of this `if` really each become their own function, which is why the
2292
2292
/// macro supports setting attributes for those functions. The runtime function is always
2293
- /// markes as `#[inline]`.
2293
+ /// marked as `#[inline]`.
2294
2294
///
2295
2295
/// See [`const_eval_select()`] for the rules and requirements around that intrinsic.
2296
2296
pub ( crate ) macro const_eval_select {
@@ -2530,7 +2530,7 @@ pub const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize)
2530
2530
/// Returns whether we should perform contract-checking at runtime.
2531
2531
///
2532
2532
/// This is meant to be similar to the ub_checks intrinsic, in terms
2533
- /// of not prematurely commiting at compile-time to whether contract
2533
+ /// of not prematurely committing at compile-time to whether contract
2534
2534
/// checking is turned on, so that we can specify contracts in libstd
2535
2535
/// and let an end user opt into turning them on.
2536
2536
#[ rustc_const_unstable( feature = "contracts_internals" , issue = "128044" /* compiler-team#759 */ ) ]
0 commit comments