Correct typos in core::sync::Exclusive::get_{pin_mut, mut}

This commit is contained in:
Albert Larsan 2022-12-12 09:19:17 +01:00 committed by GitHub
parent 2cd2070af7
commit 736342bb46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ pub const fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T> {
unsafe { Pin::new_unchecked(&mut self.get_unchecked_mut().inner) }
}
/// Build a _mutable_ references to an `Exclusive<T>` from
/// Build a _mutable_ reference to an `Exclusive<T>` from
/// a _mutable_ reference to a `T`. This allows you to skip
/// building an `Exclusive` with [`Exclusive::new`].
#[unstable(feature = "exclusive_wrapper", issue = "98407")]
@ -149,7 +149,7 @@ pub const fn from_mut(r: &'_ mut T) -> &'_ mut Exclusive<T> {
unsafe { &mut *(r as *mut T as *mut Exclusive<T>) }
}
/// Build a _pinned mutable_ references to an `Exclusive<T>` from
/// Build a _pinned mutable_ reference to an `Exclusive<T>` from
/// a _pinned mutable_ reference to a `T`. This allows you to skip
/// building an `Exclusive` with [`Exclusive::new`].
#[unstable(feature = "exclusive_wrapper", issue = "98407")]