From ad06dfe496e4e1abbc65268a58275ca2b483def5 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Fri, 1 Aug 2014 19:40:21 -0400 Subject: Fix misspelled comments. --- src/libsync/lock.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsync') diff --git a/src/libsync/lock.rs b/src/libsync/lock.rs index e8418f9668f..665cd48a278 100644 --- a/src/libsync/lock.rs +++ b/src/libsync/lock.rs @@ -223,7 +223,7 @@ impl Mutex { pub fn lock<'a>(&'a self) -> MutexGuard<'a, T> { let guard = self.lock.lock(); - // These two accesses are safe because we're guranteed at this point + // These two accesses are safe because we're guaranteed at this point // that we have exclusive access to this mutex. We are indeed able to // promote ourselves from &Mutex to `&mut T` let poison = unsafe { &mut *self.failed.get() }; @@ -326,7 +326,7 @@ impl RWLock { pub fn write<'a>(&'a self) -> RWLockWriteGuard<'a, T> { let guard = self.lock.write(); - // These two accesses are safe because we're guranteed at this point + // These two accesses are safe because we're guaranteed at this point // that we have exclusive access to this rwlock. We are indeed able to // promote ourselves from &RWLock to `&mut T` let poison = unsafe { &mut *self.failed.get() }; -- cgit 1.4.1-3-g733a5