about summary refs log tree commit diff
path: root/library/std/src/sync
diff options
context:
space:
mode:
authorZachary S <zasample18+github@gmail.com>2023-10-24 14:09:04 -0500
committerZachary S <zasample18+github@gmail.com>2023-12-05 17:30:46 -0600
commit6aebcbee0a4d232f675eb380269bb405b0a1cc32 (patch)
tree8dbbc977ce4d535397f6d4dc8e3ce8546d7558b7 /library/std/src/sync
parent5533606fe0def63a62a3f75be4eb2d87081a05c4 (diff)
downloadrust-6aebcbee0a4d232f675eb380269bb405b0a1cc32.tar.gz
rust-6aebcbee0a4d232f675eb380269bb405b0a1cc32.zip
fix MappedMutexGuard::(try_)map doc typo.
Diffstat (limited to 'library/std/src/sync')
-rw-r--r--library/std/src/sync/mutex.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sync/mutex.rs b/library/std/src/sync/mutex.rs
index 5a419f4bd84..1b3b4a3027c 100644
--- a/library/std/src/sync/mutex.rs
+++ b/library/std/src/sync/mutex.rs
@@ -701,7 +701,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
     /// The `Mutex` is already locked, so this cannot fail.
     ///
     /// This is an associated function that needs to be used as
-    /// `MutexGuard::map(...)`. A method would interfere with methods of the
+    /// `MappedMutexGuard::map(...)`. A method would interfere with methods of the
     /// same name on the contents of the `MutexGuard` used through `Deref`.
     #[unstable(feature = "mapped_lock_guards", issue = "117108")]
     pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U>
@@ -727,7 +727,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
     /// The `Mutex` is already locked, so this cannot fail.
     ///
     /// This is an associated function that needs to be used as
-    /// `MutexGuard::try_map(...)`. A method would interfere with methods of the
+    /// `MappedMutexGuard::try_map(...)`. A method would interfere with methods of the
     /// same name on the contents of the `MutexGuard` used through `Deref`.
     #[doc(alias = "filter_map")]
     #[unstable(feature = "mapped_lock_guards", issue = "117108")]