From 0157593c744d778824d888980d736b190ff18eaa Mon Sep 17 00:00:00 2001 From: Robin Raymond Date: Sat, 14 May 2022 07:34:11 +0000 Subject: [PATCH] Documentation typo --- library/std/src/sync/rwlock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.