about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2014-06-08 13:22:49 -0400
committerJoseph Crail <jbcrail@gmail.com>2014-06-08 13:39:42 -0400
commit45e56eccbed3161dd9de547c6c2dcf618114a484 (patch)
tree4eb63b08a1f5beebc194419162b0f5c5dce1c0e5 /src/libstd/rt
parent17ba0cf4289d6da632aab4cf242ad74dea94fe37 (diff)
downloadrust-45e56eccbed3161dd9de547c6c2dcf618114a484.tar.gz
rust-45e56eccbed3161dd9de547c6c2dcf618114a484.zip
Fix spelling errors in comments.
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/thread.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/thread.rs b/src/libstd/rt/thread.rs
index 81dcf909706..5a077e511c0 100644
--- a/src/libstd/rt/thread.rs
+++ b/src/libstd/rt/thread.rs
@@ -243,7 +243,7 @@ mod imp {
                 // EINVAL means |stack_size| is either too small or not a
                 // multiple of the system page size.  Because it's definitely
                 // >= PTHREAD_STACK_MIN, it must be an alignment issue.
-                // Round up to the neareast page and try again.
+                // Round up to the nearest page and try again.
                 let page_size = os::page_size();
                 let stack_size = (stack_size + page_size - 1) & (-(page_size - 1) - 1);
                 assert_eq!(pthread_attr_setstacksize(&mut attr, stack_size as libc::size_t), 0);