Documentation typo

This commit is contained in:
Robin Raymond 2022-05-14 07:34:11 +00:00
parent 08650fbb50
commit 0157593c74

View File

@ -524,7 +524,7 @@ impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T> {
} }
impl<'rwlock, T: ?Sized> RwLockWriteGuard<'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 /// 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. /// `lock.inner.try_write()`) has been successfully called before instantiating this object.