Skip to content

Commit 968ba7d

Browse files
authored
Rollup merge of #105597 - albertlarsan68:patch-1, r=Dylan-DPC
Correct typos in `core::sync::Exclusive::get_{pin_mut, mut}`
2 parents 38d97d3 + 736342b commit 968ba7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/sync/exclusive.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl<T: ?Sized> Exclusive<T> {
138138
unsafe { Pin::new_unchecked(&mut self.get_unchecked_mut().inner) }
139139
}
140140

141-
/// Build a _mutable_ references to an `Exclusive<T>` from
141+
/// Build a _mutable_ reference to an `Exclusive<T>` from
142142
/// a _mutable_ reference to a `T`. This allows you to skip
143143
/// building an `Exclusive` with [`Exclusive::new`].
144144
#[unstable(feature = "exclusive_wrapper", issue = "98407")]
@@ -149,7 +149,7 @@ impl<T: ?Sized> Exclusive<T> {
149149
unsafe { &mut *(r as *mut T as *mut Exclusive<T>) }
150150
}
151151

152-
/// Build a _pinned mutable_ references to an `Exclusive<T>` from
152+
/// Build a _pinned mutable_ reference to an `Exclusive<T>` from
153153
/// a _pinned mutable_ reference to a `T`. This allows you to skip
154154
/// building an `Exclusive` with [`Exclusive::new`].
155155
#[unstable(feature = "exclusive_wrapper", issue = "98407")]

0 commit comments

Comments
 (0)