Skip to content

Commit 464069a

Browse files
committed
Fix spelling errors in documentation.
1 parent a979efc commit 464069a

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

src/libcollections/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ impl str {
713713
/// is skipped if empty.
714714
///
715715
/// This method can be used for string data that is _terminated_,
716-
/// rather than _seperated_ by a pattern.
716+
/// rather than _separated_ by a pattern.
717717
///
718718
/// # Iterator behavior
719719
///
@@ -760,7 +760,7 @@ impl str {
760760
/// skipped if empty.
761761
///
762762
/// This method can be used for string data that is _terminated_,
763-
/// rather than _seperated_ by a pattern.
763+
/// rather than _separated_ by a pattern.
764764
///
765765
/// # Iterator behavior
766766
///

src/libcollections/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ impl FromUtf8Error {
757757
#[stable(feature = "rust1", since = "1.0.0")]
758758
pub fn into_bytes(self) -> Vec<u8> { self.bytes }
759759

760-
/// Accesss the underlying UTF8-error that was the cause of this error.
760+
/// Access the underlying UTF8-error that was the cause of this error.
761761
#[stable(feature = "rust1", since = "1.0.0")]
762762
pub fn utf8_error(&self) -> Utf8Error { self.error }
763763
}

src/libcore/str/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ macro_rules! derive_pattern_clone {
421421
/// wrapping an private internal one that makes use of the `Pattern` API.
422422
///
423423
/// For all patterns `P: Pattern<'a>` the following items will be
424-
/// generated (generics ommitted):
424+
/// generated (generics omitted):
425425
///
426426
/// struct $forward_iterator($internal_iterator);
427427
/// struct $reverse_iterator($internal_iterator);

src/librustc/middle/infer/higher_ranked/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ impl<'a,'tcx> InferCtxtExt for InferCtxt<'a,'tcx> {
461461

462462
/// Constructs and returns a substitution that, for a given type
463463
/// scheme parameterized by `generics`, will replace every generic
464-
/// parmeter in the type with a skolemized type/region (which one can
464+
/// parameter in the type with a skolemized type/region (which one can
465465
/// think of as a "fresh constant", except at the type/region level of
466466
/// reasoning).
467467
///

src/librustc/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,7 @@ pub enum Predicate<'tcx> {
19081908
}
19091909

19101910
impl<'tcx> Predicate<'tcx> {
1911-
/// Performs a substituion suitable for going from a
1911+
/// Performs a substitution suitable for going from a
19121912
/// poly-trait-ref to supertraits that must hold if that
19131913
/// poly-trait-ref holds. This is slightly different from a normal
19141914
/// substitution in terms of what happens with bound regions. See

src/libstd/macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ pub mod builtin {
434434

435435
/// Parse the current given file as an expression.
436436
///
437-
/// This is generally a bad idea, because it's going to behave unhygenically.
437+
/// This is generally a bad idea, because it's going to behave unhygienically.
438438
///
439439
/// # Examples
440440
///

src/libstd/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ pub fn is_separator(c: char) -> bool {
358358
c.is_ascii() && is_sep_byte(c as u8)
359359
}
360360

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

src/libsyntax/ast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ pub enum Pat_ {
595595

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

0 commit comments

Comments
 (0)