about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobin Raymond <robin@robinraymond.de>2022-05-14 07:34:11 +0000
committerRobin Raymond <robin@robinraymond.de>2022-06-19 09:23:35 +0200
commit0157593c744d778824d888980d736b190ff18eaa (patch)
treeed6851c2d86cb400df580c49d91c02e3944a0abd
parent08650fbb506c44fbc95d91abfb7cd95a56bbff30 (diff)
downloadrust-0157593c744d778824d888980d736b190ff18eaa.tar.gz
rust-0157593c744d778824d888980d736b190ff18eaa.zip
Documentation typo
-rw-r--r--library/std/src/sync/rwlock.rs2
1 files changed, 1 insertions, 1 deletions
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<T>` from a `RwLock<T>`.
+    /// Create a new instance of `RwLockWriteGuard<T>` from a `RwLock<T>`.
     ///
     /// 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.