about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-12 19:20:35 +0100
committerGitHub <noreply@github.com>2022-12-12 19:20:35 +0100
commit968ba7d2db605aecfd32e6bd3ea3991364c3cf0f (patch)
tree74863fdad30e37d513b49de93fab36a612d627e7
parent38d97d3ea7fa637ac98af12cb308a0a88b1090ff (diff)
parent736342bb4694b29e96ddc75cc511013780112659 (diff)
downloadrust-968ba7d2db605aecfd32e6bd3ea3991364c3cf0f.tar.gz
rust-968ba7d2db605aecfd32e6bd3ea3991364c3cf0f.zip
Rollup merge of #105597 - albertlarsan68:patch-1, r=Dylan-DPC
Correct typos in `core::sync::Exclusive::get_{pin_mut, mut}`
-rw-r--r--library/core/src/sync/exclusive.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/sync/exclusive.rs b/library/core/src/sync/exclusive.rs
index c65c275000c..301ad41c966 100644
--- a/library/core/src/sync/exclusive.rs
+++ b/library/core/src/sync/exclusive.rs
@@ -138,7 +138,7 @@ impl<T: ?Sized> Exclusive<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 @@ impl<T: ?Sized> 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")]