diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-06 23:06:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-06 23:06:08 +0200 |
| commit | d2697e31280bae9e85adda11b87e6fc76db0ed63 (patch) | |
| tree | 5552db7b99d93eefe3b88618fb32a2c500fb5aca /library/std/src/sync | |
| parent | bd92c7c6d77bc8d3fb95f3f2910ca196e29a009d (diff) | |
| parent | 6e16f9b10f676e87c5d31263759c3b9a65be0a35 (diff) | |
Rollup merge of #95730 - m-ou-se:rwlock-case, r=Dylan-DPC
Rename RWLock to RwLock in std::sys. std::sync::RwLock is spelled with two capital letters, but std::sys's RWLock was spelled with three capital letters. This cleans that up and uses `RwLock` everywhere.
Diffstat (limited to 'library/std/src/sync')
| -rw-r--r-- | library/std/src/sync/rwlock.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sync/rwlock.rs b/library/std/src/sync/rwlock.rs index 2e72a9ef54e..ed62fa977be 100644 --- a/library/std/src/sync/rwlock.rs +++ b/library/std/src/sync/rwlock.rs @@ -76,7 +76,7 @@ use crate::sys_common::rwlock as sys; /// [`Mutex`]: super::Mutex #[stable(feature = "rust1", since = "1.0.0")] pub struct RwLock<T: ?Sized> { - inner: sys::MovableRWLock, + inner: sys::MovableRwLock, poison: poison::Flag, data: UnsafeCell<T>, } @@ -146,7 +146,7 @@ impl<T> RwLock<T> { #[stable(feature = "rust1", since = "1.0.0")] pub fn new(t: T) -> RwLock<T> { RwLock { - inner: sys::MovableRWLock::new(), + inner: sys::MovableRwLock::new(), poison: poison::Flag::new(), data: UnsafeCell::new(t), } |
