about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Crail <jbcrail@gmail.com>2015-03-19 00:48:08 -0400
committerJoseph Crail <jbcrail@gmail.com>2015-03-19 00:48:08 -0400
commit857035ade7577d23bac596eb43c34e6844ce0b74 (patch)
treed525325183421024290c559a877541022a684f0d
parent12cb7c6a2847959460ecac75b2c983d071585472 (diff)
downloadrust-857035ade7577d23bac596eb43c34e6844ce0b74.tar.gz
rust-857035ade7577d23bac596eb43c34e6844ce0b74.zip
Fix spelling errors in comments.
I corrected misspelled comments in several crates.
-rw-r--r--src/libcore/str/pattern.rs4
-rw-r--r--src/librbml/lib.rs2
-rw-r--r--src/librustc_trans/trans/type_of.rs2
-rw-r--r--src/librustc_typeck/check/regionck.rs2
-rw-r--r--src/librustc_typeck/check/upvar.rs2
-rw-r--r--src/libstd/io/stdio.rs2
-rw-r--r--src/libstd/sys/common/rwlock.rs8
-rw-r--r--src/libsyntax/ast.rs2
8 files changed, 12 insertions, 12 deletions
diff --git a/src/libcore/str/pattern.rs b/src/libcore/str/pattern.rs
index 9eeb9b869ce..7bf248917a5 100644
--- a/src/libcore/str/pattern.rs
+++ b/src/libcore/str/pattern.rs
@@ -25,7 +25,7 @@ use super::CharEq;
 ///
 /// The trait itself acts as a builder for an associated
 /// `Searcher` type, which does the actual work of finding
-/// occurences of the pattern in a string.
+/// occurrences of the pattern in a string.
 pub trait Pattern<'a>: Sized {
     /// Associated searcher for this pattern
     type Searcher: Searcher<'a>;
@@ -72,7 +72,7 @@ pub enum SearchStep {
     /// Expresses that `haystack[a..b]` has been rejected as a possible match
     /// of the pattern.
     ///
-    /// Note that there might be more than one `Reject` betwen two `Match`es,
+    /// Note that there might be more than one `Reject` between two `Match`es,
     /// there is no requirement for them to be combined into one.
     Reject(usize, usize),
     /// Expresses that every byte of the haystack has been visted, ending
diff --git a/src/librbml/lib.rs b/src/librbml/lib.rs
index 5d1fbc32f14..1a794f56f80 100644
--- a/src/librbml/lib.rs
+++ b/src/librbml/lib.rs
@@ -1061,7 +1061,7 @@ pub mod writer {
         }
 
         /// Returns the current position while marking it stable, i.e.
-        /// generated bytes so far woundn't be affected by relaxation.
+        /// generated bytes so far wouldn't be affected by relaxation.
         pub fn mark_stable_position(&mut self) -> u64 {
             let pos = self.writer.seek(SeekFrom::Current(0)).unwrap();
             if self.relax_limit < pos {
diff --git a/src/librustc_trans/trans/type_of.rs b/src/librustc_trans/trans/type_of.rs
index 97278eb0512..8d228c22c3c 100644
--- a/src/librustc_trans/trans/type_of.rs
+++ b/src/librustc_trans/trans/type_of.rs
@@ -264,7 +264,7 @@ pub fn arg_type_of<'a, 'tcx>(cx: &CrateContext<'a, 'tcx>, t: Ty<'tcx>) -> Type {
 }
 
 /// Get the LLVM type corresponding to a Rust type, i.e. `middle::ty::Ty`.
-/// This is the right LLVM type for an alloca containg a value of that type,
+/// This is the right LLVM type for an alloca containing a value of that type,
 /// and the pointee of an Lvalue Datum (which is always a LLVM pointer).
 /// For unsized types, the returned type is a fat pointer, thus the resulting
 /// LLVM type for a `Trait` Lvalue is `{ i8*, void(i8*)** }*`, which is a double
diff --git a/src/librustc_typeck/check/regionck.rs b/src/librustc_typeck/check/regionck.rs
index 2b937768e2e..5a4ccc0b7b4 100644
--- a/src/librustc_typeck/check/regionck.rs
+++ b/src/librustc_typeck/check/regionck.rs
@@ -225,7 +225,7 @@ impl<'a, 'tcx> Rcx<'a, 'tcx> {
     /// }
     /// ```
     ///
-    /// Here, the region of `b` will be `<R0>`.  `<R0>` is constrainted to be some subregion of the
+    /// Here, the region of `b` will be `<R0>`.  `<R0>` is constrained to be some subregion of the
     /// block B and some superregion of the call.  If we forced it now, we'd choose the smaller
     /// region (the call).  But that would make the *b illegal.  Since we don't resolve, the type
     /// of b will be `&<R0>.int` and then `*b` will require that `<R0>` be bigger than the let and
diff --git a/src/librustc_typeck/check/upvar.rs b/src/librustc_typeck/check/upvar.rs
index 17fc2aad286..09592db8a11 100644
--- a/src/librustc_typeck/check/upvar.rs
+++ b/src/librustc_typeck/check/upvar.rs
@@ -294,7 +294,7 @@ impl<'a,'tcx> AdjustBorrowKind<'a,'tcx> {
 
     /// Indicates that `cmt` is being directly mutated (e.g., assigned
     /// to). If cmt contains any by-ref upvars, this implies that
-    /// those upvars must be borrowed using an `&mut` borow.
+    /// those upvars must be borrowed using an `&mut` borrow.
     fn adjust_upvar_borrow_kind_for_mut(&mut self, cmt: mc::cmt<'tcx>) {
         debug!("adjust_upvar_borrow_kind_for_mut(cmt={})",
                cmt.repr(self.tcx()));
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs
index 75d047d5c9c..f55a825a137 100644
--- a/src/libstd/io/stdio.rs
+++ b/src/libstd/io/stdio.rs
@@ -19,7 +19,7 @@ use io::{self, BufReader, LineWriter};
 use sync::{Arc, Mutex, MutexGuard};
 use sys::stdio;
 
-/// Stdout used by print! and println! macroses
+/// Stdout used by print! and println! macros
 thread_local! {
     static LOCAL_STDOUT: RefCell<Option<Box<Write + Send>>> = {
         RefCell::new(None)
diff --git a/src/libstd/sys/common/rwlock.rs b/src/libstd/sys/common/rwlock.rs
index fe374e1fd78..f7d7a5715bc 100644
--- a/src/libstd/sys/common/rwlock.rs
+++ b/src/libstd/sys/common/rwlock.rs
@@ -25,7 +25,7 @@ impl RWLock {
     /// thread to do so.
     ///
     /// Behavior is undefined if the rwlock has been moved between this and any
-    /// previous methodo call.
+    /// previous method call.
     #[inline]
     pub unsafe fn read(&self) { self.0.read() }
 
@@ -35,7 +35,7 @@ impl RWLock {
     /// This function does not block the current thread.
     ///
     /// Behavior is undefined if the rwlock has been moved between this and any
-    /// previous methodo call.
+    /// previous method call.
     #[inline]
     pub unsafe fn try_read(&self) -> bool { self.0.try_read() }
 
@@ -43,7 +43,7 @@ impl RWLock {
     /// to do so.
     ///
     /// Behavior is undefined if the rwlock has been moved between this and any
-    /// previous methodo call.
+    /// previous method call.
     #[inline]
     pub unsafe fn write(&self) { self.0.write() }
 
@@ -53,7 +53,7 @@ impl RWLock {
     /// This function does not block the current thread.
     ///
     /// Behavior is undefined if the rwlock has been moved between this and any
-    /// previous methodo call.
+    /// previous method call.
     #[inline]
     pub unsafe fn try_write(&self) -> bool { self.0.try_write() }
 
diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs
index 5c275715352..a2188f767dc 100644
--- a/src/libsyntax/ast.rs
+++ b/src/libsyntax/ast.rs
@@ -893,7 +893,7 @@ pub enum Expr_ {
 
 /// The explicit Self type in a "qualified path". The actual
 /// path, including the trait and the associated item, is stored
-/// sepparately. `position` represents the index of the associated
+/// separately. `position` represents the index of the associated
 /// item qualified with this Self type.
 ///
 ///     <Vec<T> as a::b::Trait>::AssociatedItem