mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 04:27:38 +00:00
Documentation typo
This commit is contained in:
parent
08650fbb50
commit
0157593c74
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user