Skip to content

Commit

Permalink
Fix spelling errors in documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jbcrail committed May 4, 2015
1 parent a979efc commit 464069a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/libcollections/str.rs
Expand Up @@ -713,7 +713,7 @@ impl str {
/// is skipped if empty.
///
/// This method can be used for string data that is _terminated_,
/// rather than _seperated_ by a pattern.
/// rather than _separated_ by a pattern.
///
/// # Iterator behavior
///
Expand Down Expand Up @@ -760,7 +760,7 @@ impl str {
/// skipped if empty.
///
/// This method can be used for string data that is _terminated_,
/// rather than _seperated_ by a pattern.
/// rather than _separated_ by a pattern.
///
/// # Iterator behavior
///
Expand Down
2 changes: 1 addition & 1 deletion src/libcollections/string.rs
Expand Up @@ -757,7 +757,7 @@ impl FromUtf8Error {
#[stable(feature = "rust1", since = "1.0.0")]
pub fn into_bytes(self) -> Vec<u8> { self.bytes }

/// Accesss the underlying UTF8-error that was the cause of this error.
/// Access the underlying UTF8-error that was the cause of this error.
#[stable(feature = "rust1", since = "1.0.0")]
pub fn utf8_error(&self) -> Utf8Error { self.error }
}
Expand Down
2 changes: 1 addition & 1 deletion src/libcore/str/mod.rs
Expand Up @@ -421,7 +421,7 @@ macro_rules! derive_pattern_clone {
/// wrapping an private internal one that makes use of the `Pattern` API.
///
/// For all patterns `P: Pattern<'a>` the following items will be
/// generated (generics ommitted):
/// generated (generics omitted):
///
/// struct $forward_iterator($internal_iterator);
/// struct $reverse_iterator($internal_iterator);
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/infer/higher_ranked/mod.rs
Expand Up @@ -461,7 +461,7 @@ impl<'a,'tcx> InferCtxtExt for InferCtxt<'a,'tcx> {

/// Constructs and returns a substitution that, for a given type
/// scheme parameterized by `generics`, will replace every generic
/// parmeter in the type with a skolemized type/region (which one can
/// parameter in the type with a skolemized type/region (which one can
/// think of as a "fresh constant", except at the type/region level of
/// reasoning).
///
Expand Down
2 changes: 1 addition & 1 deletion src/librustc/middle/ty.rs
Expand Up @@ -1908,7 +1908,7 @@ pub enum Predicate<'tcx> {
}

impl<'tcx> Predicate<'tcx> {
/// Performs a substituion suitable for going from a
/// Performs a substitution suitable for going from a
/// poly-trait-ref to supertraits that must hold if that
/// poly-trait-ref holds. This is slightly different from a normal
/// substitution in terms of what happens with bound regions. See
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/macros.rs
Expand Up @@ -434,7 +434,7 @@ pub mod builtin {

/// Parse the current given file as an expression.
///
/// This is generally a bad idea, because it's going to behave unhygenically.
/// This is generally a bad idea, because it's going to behave unhygienically.
///
/// # Examples
///
Expand Down
2 changes: 1 addition & 1 deletion src/libstd/path.rs
Expand Up @@ -358,7 +358,7 @@ pub fn is_separator(c: char) -> bool {
c.is_ascii() && is_sep_byte(c as u8)
}

/// The primary sperator for the current platform
/// The primary separator for the current platform
#[stable(feature = "rust1", since = "1.0.0")]
pub const MAIN_SEPARATOR: char = platform::MAIN_SEP;

Expand Down
2 changes: 1 addition & 1 deletion src/libsyntax/ast.rs
Expand Up @@ -595,7 +595,7 @@ pub enum Pat_ {

/// An associated const named using the qualified path `<T>::CONST` or
/// `<T as Trait>::CONST`. Associated consts from inherent impls can be
/// refered to as simply `T::CONST`, in which case they will end up as
/// referred to as simply `T::CONST`, in which case they will end up as
/// PatEnum, and the resolver will have to sort that out.
PatQPath(QSelf, Path),

Expand Down

0 comments on commit 464069a

Please sign in to comment.