@@ -612,7 +612,7 @@ impl<'a, T: ?Sized> MutexGuard<'a, T> {
612
612
F : FnOnce ( & mut T ) -> & mut U ,
613
613
U : ?Sized ,
614
614
{
615
- // SAFETY: the conditions of `MutedGuard ::new` were satisfied when the original guard
615
+ // SAFETY: the conditions of `MutexGuard ::new` were satisfied when the original guard
616
616
// was created, and have been upheld throughout `map` and/or `try_map`.
617
617
// The signature of the closure guarantees that it will not "leak" the lifetime of the reference
618
618
// passed to it. If the closure panics, the guard will be dropped.
@@ -720,7 +720,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
720
720
F : FnOnce ( & mut T ) -> & mut U ,
721
721
U : ?Sized ,
722
722
{
723
- // SAFETY: the conditions of `MutedGuard ::new` were satisfied when the original guard
723
+ // SAFETY: the conditions of `MutexGuard ::new` were satisfied when the original guard
724
724
// was created, and have been upheld throughout `map` and/or `try_map`.
725
725
// The signature of the closure guarantees that it will not "leak" the lifetime of the reference
726
726
// passed to it. If the closure panics, the guard will be dropped.
@@ -751,7 +751,7 @@ impl<'a, T: ?Sized> MappedMutexGuard<'a, T> {
751
751
F : FnOnce ( & mut T ) -> Option < & mut U > ,
752
752
U : ?Sized ,
753
753
{
754
- // SAFETY: the conditions of `MutedGuard ::new` were satisfied when the original guard
754
+ // SAFETY: the conditions of `MutexGuard ::new` were satisfied when the original guard
755
755
// was created, and have been upheld throughout `map` and/or `try_map`.
756
756
// The signature of the closure guarantees that it will not "leak" the lifetime of the reference
757
757
// passed to it. If the closure panics, the guard will be dropped.
0 commit comments