diff --git a/src/libstd/sync/rwlock.rs b/src/libstd/sync/rwlock.rs index 431aeb9cae9..af102fc7402 100644 --- a/src/libstd/sync/rwlock.rs +++ b/src/libstd/sync/rwlock.rs @@ -59,13 +59,13 @@ use sys_common::rwlock as sys; /// } // write lock is dropped here /// ``` #[stable] -pub struct RWLock { +pub struct RwLock { inner: Box, data: UnsafeCell, } -unsafe impl Send for RWLock {} -unsafe impl Sync for RWLock {} +unsafe impl Send for RwLock {} +unsafe impl Sync for RwLock {} /// Structure representing a statically allocated RWLock. /// @@ -127,11 +127,11 @@ pub struct RWLockWriteGuard<'a, T: 'a> { __marker: marker::NoSend, } -impl RWLock { +impl RwLock { /// Creates a new instance of an RWLock which is unlocked and read to go. #[stable] - pub fn new(t: T) -> RWLock { - RWLock { inner: box RWLOCK_INIT, data: UnsafeCell::new(t) } + pub fn new(t: T) -> RwLock { + RwLock { inner: box RWLOCK_INIT, data: UnsafeCell::new(t) } } /// Locks this rwlock with shared read access, blocking the current thread @@ -228,7 +228,7 @@ impl RWLock { } #[unsafe_destructor] -impl Drop for RWLock { +impl Drop for RwLock { fn drop(&mut self) { unsafe { self.inner.lock.destroy() } }