Skip to content

Commit 6aebcbe

Browse files
committed
fix MappedMutexGuard::(try_)map doc typo.
1 parent 5533606 commit 6aebcbe

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
@@ -701,7 +701,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
701701
/// The `Mutex` is already locked, so this cannot fail.
702702
///
703703
/// This is an associated function that needs to be used as
704-
/// `MutexGuard::map(...)`. A method would interfere with methods of the
704+
/// `MappedMutexGuard::map(...)`. A method would interfere with methods of the
705705
/// same name on the contents of the `MutexGuard` used through `Deref`.
706706
#[unstable(feature = "mapped_lock_guards", issue = "117108")]
707707
pub fn map<U, F>(orig: Self, f: F) -> MappedMutexGuard<'a, U>
@@ -727,7 +727,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
727727
/// The `Mutex` is already locked, so this cannot fail.
728728
///
729729
/// This is an associated function that needs to be used as
730-
/// `MutexGuard::try_map(...)`. A method would interfere with methods of the
730+
/// `MappedMutexGuard::try_map(...)`. A method would interfere with methods of the
731731
/// same name on the contents of the `MutexGuard` used through `Deref`.
732732
#[doc(alias = "filter_map")]
733733
#[unstable(feature = "mapped_lock_guards", issue = "117108")]

0 commit comments

Comments
 (0)