about summary refs log tree commit diff
path: root/src/librustuv
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-06-09 00:00:52 -0400
committerJoseph Crail <jbcrail@gmail.com>2014-06-10 11:24:17 -0400
commitc2c99463720e758d5aa0bdcea19dc5b3dd67292c (patch)
treeb6744e6d280594324f1f22fe8b76ccd03f7eedb0 /src/librustuv
parent0ee6a8e8a564ec0134ebdc0869fab5e4bb28024c (diff)
downloadrust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.tar.gz
rust-c2c99463720e758d5aa0bdcea19dc5b3dd67292c.zip
Fix more misspelled comments and strings.
Diffstat (limited to 'src/librustuv')
-rw-r--r--src/librustuv/lib.rs2
-rw-r--r--src/librustuv/stream.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustuv/lib.rs b/src/librustuv/lib.rs
index e2122aea036..d67adfe501e 100644
--- a/src/librustuv/lib.rs
+++ b/src/librustuv/lib.rs
@@ -212,7 +212,7 @@ impl ForbidSwitch {
 impl Drop for ForbidSwitch {
     fn drop(&mut self) {
         assert!(self.io == homing::local_id(),
-                "didnt want a scheduler switch: {}",
+                "didn't want a scheduler switch: {}",
                 self.msg);
     }
 }
diff --git a/src/librustuv/stream.rs b/src/librustuv/stream.rs
index 8ce985eb76d..74294497762 100644
--- a/src/librustuv/stream.rs
+++ b/src/librustuv/stream.rs
@@ -147,7 +147,7 @@ impl StreamWatcher {
         // function is why that wording exists.
         //
         // Implementation-wise, we must be careful when passing a buffer down to
-        // libuv. Most of this implementation avoids allocations becuase of the
+        // libuv. Most of this implementation avoids allocations because of the
         // blocking guarantee (all stack local variables are valid for the
         // entire read/write request). If our write request can be timed out,
         // however, we must heap allocate the data and pass that to the libuv
@@ -164,7 +164,7 @@ impl StreamWatcher {
         };
 
         // Send off the request, but be careful to not block until we're sure
-        // that the write reqeust is queued. If the reqeust couldn't be queued,
+        // that the write request is queued. If the request couldn't be queued,
         // then we should return immediately with an error.
         match unsafe {
             uvll::uv_write(req.handle, self.handle, [uv_buf], write_cb)