Skip to content

Commit b823dc1

Browse files
committed
Also fix “a RwLock*”
1 parent 04fa1d8 commit b823dc1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compiler/rustc_data_structures/src/owning_ref/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,9 +1157,9 @@ pub type RefRef<'a, T, U = T> = OwningRef<Ref<'a, T>, U>;
11571157
pub type RefMutRef<'a, T, U = T> = OwningRef<RefMut<'a, T>, U>;
11581158
/// Typedef of an owning reference that uses a `MutexGuard` as the owner.
11591159
pub type MutexGuardRef<'a, T, U = T> = OwningRef<MutexGuard<'a, T>, U>;
1160-
/// Typedef of an owning reference that uses a `RwLockReadGuard` as the owner.
1160+
/// Typedef of an owning reference that uses an `RwLockReadGuard` as the owner.
11611161
pub type RwLockReadGuardRef<'a, T, U = T> = OwningRef<RwLockReadGuard<'a, T>, U>;
1162-
/// Typedef of an owning reference that uses a `RwLockWriteGuard` as the owner.
1162+
/// Typedef of an owning reference that uses an `RwLockWriteGuard` as the owner.
11631163
pub type RwLockWriteGuardRef<'a, T, U = T> = OwningRef<RwLockWriteGuard<'a, T>, U>;
11641164

11651165
/// Typedef of a mutable owning reference that uses a `Box` as the owner.
@@ -1173,7 +1173,7 @@ pub type StringRefMut = OwningRefMut<String, str>;
11731173
pub type RefMutRefMut<'a, T, U = T> = OwningRefMut<RefMut<'a, T>, U>;
11741174
/// Typedef of a mutable owning reference that uses a `MutexGuard` as the owner.
11751175
pub type MutexGuardRefMut<'a, T, U = T> = OwningRefMut<MutexGuard<'a, T>, U>;
1176-
/// Typedef of a mutable owning reference that uses a `RwLockWriteGuard` as the owner.
1176+
/// Typedef of a mutable owning reference that uses an `RwLockWriteGuard` as the owner.
11771177
pub type RwLockWriteGuardRefMut<'a, T, U = T> = OwningRef<RwLockWriteGuard<'a, T>, U>;
11781178

11791179
unsafe impl<'a, T: 'a> IntoErased<'a> for Box<T> {

src/test/ui/drop/dropck_legal_cycles.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ pub fn main() {
368368
// We can use refcells if we're single-threaded (as this test is).
369369
// If one were to generalize these constructions to a
370370
// multi-threaded context, then it might seem like we could choose
371-
// between either a RwLock or a Mutex to hold the owned arcs on
371+
// between either an RwLock or a Mutex to hold the owned arcs on
372372
// each node.
373373
//
374374
// Part of the point of this test is to actually confirm that the

0 commit comments

Comments
 (0)