about summary refs log tree commit diff
path: root/src/libsync
diff options
context:
space:
mode:
Diffstat (limited to 'src/libsync')
-rw-r--r--src/libsync/lock.rs2
-rw-r--r--src/libsync/one.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libsync/lock.rs b/src/libsync/lock.rs
index 1b620185610..723d0d60867 100644
--- a/src/libsync/lock.rs
+++ b/src/libsync/lock.rs
@@ -513,7 +513,7 @@ mod tests {
     #[test]
     fn test_mutex_arc_nested() {
         // Tests nested mutexes and access
-        // to underlaying data.
+        // to underlying data.
         let arc = Arc::new(Mutex::new(1));
         let arc2 = Arc::new(Mutex::new(arc));
         task::spawn(proc() {
diff --git a/src/libsync/one.rs b/src/libsync/one.rs
index eb919198708..bd4b5fae3d0 100644
--- a/src/libsync/one.rs
+++ b/src/libsync/one.rs
@@ -71,7 +71,7 @@ impl Once {
 
         // Implementation-wise, this would seem like a fairly trivial primitive.
         // The stickler part is where our mutexes currently require an
-        // allocation, and usage of a `Once` should't leak this allocation.
+        // allocation, and usage of a `Once` shouldn't leak this allocation.
         //
         // This means that there must be a deterministic destroyer of the mutex
         // contained within (because it's not needed after the initialization