Skip to content

Commit

Permalink
Fix spelling errors in comments.
Browse files Browse the repository at this point in the history
I corrected misspelled comments in several crates.
  • Loading branch information
jbcrail committed Mar 19, 2015
1 parent 12cb7c6 commit 857035a
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/libcore/str/pattern.rs
Expand Up @@ -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>;
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/librbml/lib.rs
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_trans/trans/type_of.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/regionck.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/librustc_typeck/check/upvar.rs
Expand Up @@ -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()));
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/io/stdio.rs
Expand Up @@ -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)
Expand Down
8 changes: 4 additions & 4 deletions src/libstd/sys/common/rwlock.rs
Expand Up @@ -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() }

Expand All @@ -35,15 +35,15 @@ 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() }

/// Acquire write access to the underlying lock, blocking the current 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 write(&self) { self.0.write() }

Expand All @@ -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() }

Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/ast.rs
Expand Up @@ -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
Expand Down

0 comments on commit 857035a

Please sign in to comment.