From 464069a4bfff2e94cb91c6cc5f0da40bba086bc4 Mon Sep 17 00:00:00 2001 From: Joseph Crail Date: Mon, 4 May 2015 13:21:27 -0400 Subject: [PATCH] Fix spelling errors in documentation. --- src/libcollections/str.rs | 4 ++-- src/libcollections/string.rs | 2 +- src/libcore/str/mod.rs | 2 +- src/librustc/middle/infer/higher_ranked/mod.rs | 2 +- src/librustc/middle/ty.rs | 2 +- src/libstd/macros.rs | 2 +- src/libstd/path.rs | 2 +- src/libsyntax/ast.rs | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index db9f526a0f22e..38431ab5bf1b0 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -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 /// @@ -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 /// diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index ad5ed1c89cdd9..3c668f7fe9bc6 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -757,7 +757,7 @@ impl FromUtf8Error { #[stable(feature = "rust1", since = "1.0.0")] pub fn into_bytes(self) -> Vec { 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 } } diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index 6b65d74625614..c9bbcba31e9de 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -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); diff --git a/src/librustc/middle/infer/higher_ranked/mod.rs b/src/librustc/middle/infer/higher_ranked/mod.rs index f347d28b93c2b..b0940aa7ec0ac 100644 --- a/src/librustc/middle/infer/higher_ranked/mod.rs +++ b/src/librustc/middle/infer/higher_ranked/mod.rs @@ -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). /// diff --git a/src/librustc/middle/ty.rs b/src/librustc/middle/ty.rs index 94071ff91903c..c80dba6d1fb31 100644 --- a/src/librustc/middle/ty.rs +++ b/src/librustc/middle/ty.rs @@ -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 diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index fcebe9c5e98d6..362296cd1339d 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -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 /// diff --git a/src/libstd/path.rs b/src/libstd/path.rs index 2ceb60cc3aa9f..8ccc387c90277 100644 --- a/src/libstd/path.rs +++ b/src/libstd/path.rs @@ -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; diff --git a/src/libsyntax/ast.rs b/src/libsyntax/ast.rs index 3b7bfb1043a35..e00cb82649b7b 100644 --- a/src/libsyntax/ast.rs +++ b/src/libsyntax/ast.rs @@ -595,7 +595,7 @@ pub enum Pat_ { /// An associated const named using the qualified path `::CONST` or /// `::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),