From e3fa23bcb64064d50c2a9e3b5870bc82081359d9 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Wed, 2 Jul 2014 21:27:07 -0400 Subject: Fix spelling errors. --- src/libsync/comm/oneshot.rs | 2 +- src/libsync/comm/shared.rs | 4 ++-- src/libsync/mutex.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libsync') diff --git a/src/libsync/comm/oneshot.rs b/src/libsync/comm/oneshot.rs index bf2d9aa52fd..742686069e2 100644 --- a/src/libsync/comm/oneshot.rs +++ b/src/libsync/comm/oneshot.rs @@ -354,7 +354,7 @@ impl Packet { } // We woke ourselves up from select. Assert that the task should be - // trashed and returne that we don't have any data. + // trashed and returned that we don't have any data. n => { let t = unsafe { BlockedTask::cast_from_uint(n) }; t.trash(); diff --git a/src/libsync/comm/shared.rs b/src/libsync/comm/shared.rs index a50a6bbc8d3..5ad4dea5d2a 100644 --- a/src/libsync/comm/shared.rs +++ b/src/libsync/comm/shared.rs @@ -81,7 +81,7 @@ impl Packet { // This function should be used after newly created Packet // was wrapped with an Arc - // In other case mutex data will be duplicated while clonning + // In other case mutex data will be duplicated while cloning // and that could cause problems on platforms where it is // represented by opaque data structure pub fn postinit_lock(&mut self) { @@ -140,7 +140,7 @@ impl Packet { // See Port::drop for what's going on if self.port_dropped.load(atomics::SeqCst) { return Err(t) } - // Note that the multiple sender case is a little tricker + // Note that the multiple sender case is a little trickier // semantically than the single sender case. The logic for // incrementing is "add and if disconnected store disconnected". // This could end up leading some senders to believe that there diff --git a/src/libsync/mutex.rs b/src/libsync/mutex.rs index ef558d3f924..a10ec745869 100644 --- a/src/libsync/mutex.rs +++ b/src/libsync/mutex.rs @@ -215,7 +215,7 @@ impl StaticMutex { None => {} } - // After we've failed the fast path, then we delegate to the differnet + // After we've failed the fast path, then we delegate to the different // locking protocols for green/native tasks. This will select two tasks // to continue further (one native, one green). let t: Box = Local::take(); -- cgit 1.4.1-3-g733a5