about summary refs log tree commit diff
path: root/src/librustrt
diff options
context:
space:
mode:
Diffstat (limited to 'src/librustrt')
-rw-r--r--src/librustrt/task.rs2
-rw-r--r--src/librustrt/unwind.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/librustrt/task.rs b/src/librustrt/task.rs
index 0640b2b9c77..bde14b962c7 100644
--- a/src/librustrt/task.rs
+++ b/src/librustrt/task.rs
@@ -163,7 +163,7 @@ impl Task {
 
         // Here we must unsafely borrow the task in order to not remove it from
         // TLS. When collecting failure, we may attempt to send on a channel (or
-        // just run aribitrary code), so we must be sure to still have a local
+        // just run arbitrary code), so we must be sure to still have a local
         // task in TLS.
         unsafe {
             let me: *mut Task = Local::unsafe_borrow();
diff --git a/src/librustrt/unwind.rs b/src/librustrt/unwind.rs
index 2fd9f4ef1f1..f7475db1552 100644
--- a/src/librustrt/unwind.rs
+++ b/src/librustrt/unwind.rs
@@ -395,7 +395,7 @@ pub fn begin_unwind<M: Any + Send>(msg: M, file: &'static str, line: uint) -> !
 /// The core of the unwinding.
 ///
 /// This is non-generic to avoid instantiation bloat in other crates
-/// (which makes compilation of small crates noticably slower). (Note:
+/// (which makes compilation of small crates noticeably slower). (Note:
 /// we need the `Any` object anyway, we're not just creating it to
 /// avoid being generic.)
 ///
@@ -408,7 +408,7 @@ fn begin_unwind_inner(msg: Box<Any:Send>,
     // First, invoke call the user-defined callbacks triggered on task failure.
     //
     // By the time that we see a callback has been registered (by reading
-    // MAX_CALLBACKS), the actuall callback itself may have not been stored yet,
+    // MAX_CALLBACKS), the actual callback itself may have not been stored yet,
     // so we just chalk it up to a race condition and move on to the next
     // callback. Additionally, CALLBACK_CNT may briefly be higher than
     // MAX_CALLBACKS, so we're sure to clamp it as necessary.