Skip to content

Commit 6c2263c

Browse files
committed
rollup merge of #20519: ville-h/rwlock-rename
Conflicts: src/libstd/sync/rwlock.rs
2 parents a73c352 + fee1f2a commit 6c2263c

File tree

3 files changed

+84
-84
lines changed

3 files changed

+84
-84
lines changed

src/libstd/sync/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ pub use core::atomic;
2222

2323
pub use self::mutex::{Mutex, MutexGuard, StaticMutex};
2424
pub use self::mutex::MUTEX_INIT;
25-
pub use self::rwlock::{RWLock, StaticRWLock, RWLOCK_INIT};
26-
pub use self::rwlock::{RWLockReadGuard, RWLockWriteGuard};
25+
pub use self::rwlock::{RwLock, StaticRwLock, RW_LOCK_INIT};
26+
pub use self::rwlock::{RwLockReadGuard, RwLockWriteGuard};
2727
pub use self::condvar::{Condvar, StaticCondvar, CONDVAR_INIT};
2828
pub use self::once::{Once, ONCE_INIT};
2929
pub use self::semaphore::{Semaphore, SemaphoreGuard};

src/libstd/sync/poison.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub struct Guard {
4949

5050
/// A type of error which can be returned whenever a lock is acquired.
5151
///
52-
/// Both Mutexes and RWLocks are poisoned whenever a task fails while the lock
52+
/// Both Mutexes and RwLocks are poisoned whenever a task fails while the lock
5353
/// is held. The precise semantics for when a lock is poisoned is documented on
5454
/// each lock, but once a lock is poisoned then all future acquisitions will
5555
/// return this error.

0 commit comments

Comments
 (0)