Skip to content

Commit 0157593

Browse files
committed
Documentation typo
1 parent 08650fb commit 0157593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/sync/rwlock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ impl<'rwlock, T: ?Sized> RwLockReadGuard<'rwlock, T> {
524524
}
525525

526526
impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T> {
527-
/// Create a new instance of `RwLockReadGuard<T>` from a `RwLock<T>`.
527+
/// Create a new instance of `RwLockWriteGuard<T>` from a `RwLock<T>`.
528528
///
529529
/// It is safe to call this function if and only if `lock.inner.write()` (or
530530
/// `lock.inner.try_write()`) has been successfully called before instantiating this object.

0 commit comments

Comments
 (0)