Skip to content

Commit 52fb6c6

Browse files
committed
fix MappedMutexGuard::(try_)map doc typo.
1 parent 633055b commit 52fb6c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: library/std/src/sync/mutex.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
705705
/// The `Mutex` is already locked, so this cannot fail.
706706
///
707707
/// This is an associated function that needs to be used as
708-
/// `MutexGuard::map(...)`. A method would interfere with methods of the
708+
/// `MappedMutexGuard::map(...)`. A method would interfere with methods of the
709709
/// same name on the contents of the `MutexGuard` used through `Deref`.
710710
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
711711
pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U>
@@ -730,7 +730,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
730730
/// The `Mutex` is already locked, so this cannot fail.
731731
///
732732
/// This is an associated function that needs to be used as
733-
/// `MutexGuard::try_map(...)`. A method would interfere with methods of the
733+
/// `MappedMutexGuard::try_map(...)`. A method would interfere with methods of the
734734
/// same name on the contents of the `MutexGuard` used through `Deref`.
735735
#[doc(alias = "filter_map")]
736736
#[unstable(feature = "mapped_lock_guards", issue = "117108")]

0 commit comments

Comments
 (0)