diff --git a/library/std/src/sync/rwlock.rs b/library/std/src/sync/rwlock.rs index 81693a7f5f5..00c34b96b78 100644 --- a/library/std/src/sync/rwlock.rs +++ b/library/std/src/sync/rwlock.rs @@ -524,7 +524,7 @@ impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T> { } impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T> { - /// Create a new instance of `RwLockReadGuard` from a `RwLock`. + /// Create a new instance of `RwLockWriteGuard` from a `RwLock`. /// /// It is safe to call this function if and only if `lock.inner.write()` (or /// `lock.inner.try_write()`) has been successfully called before instantiating this object.