From 9431f3cc7b131a3413508901ed98e0c6cc0505c7 Mon Sep 17 00:00:00 2001 From: Andrew Paseltiner Date: Mon, 19 Oct 2015 13:45:33 -0400 Subject: [PATCH] Correct spelling in docs --- src/doc/nomicon/safe-unsafe-meaning.md | 2 +- src/libcollections/str.rs | 2 +- src/libcore/iter.rs | 2 +- src/libstd/process.rs | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/doc/nomicon/safe-unsafe-meaning.md b/src/doc/nomicon/safe-unsafe-meaning.md index 827ea255053..5fd61eb51dd 100644 --- a/src/doc/nomicon/safe-unsafe-meaning.md +++ b/src/doc/nomicon/safe-unsafe-meaning.md @@ -42,7 +42,7 @@ Some examples of unsafe functions: * `slice::get_unchecked` will perform unchecked indexing, allowing memory safety to be freely violated. * every raw pointer to sized type has intrinsic `offset` method that invokes - Undefined Behaviour if it is not "in bounds" as defined by LLVM. + Undefined Behavior if it is not "in bounds" as defined by LLVM. * `mem::transmute` reinterprets some value as having the given type, bypassing type safety in arbitrary ways. (see [conversions] for details) * All FFI functions are `unsafe` because they can do arbitrary things. diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index 5f1ace19f6d..023edf29341 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -102,7 +102,7 @@ impl> SliceConcatExt for [S] { } } -/// External iterator for a string's UTF16 codeunits. +/// External iterator for a string's UTF-16 code units. /// /// For use with the `std::iter` module. #[derive(Clone)] diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs index f9dc65b95aa..e164fbf6d81 100644 --- a/src/libcore/iter.rs +++ b/src/libcore/iter.rs @@ -3135,7 +3135,7 @@ impl Default for Empty { /// Creates an iterator that yields nothing. /// -/// # Exampes +/// # Examples /// /// Basic usage: /// diff --git a/src/libstd/process.rs b/src/libstd/process.rs index 4e80fb2ceb0..6e3c5eaf217 100644 --- a/src/libstd/process.rs +++ b/src/libstd/process.rs @@ -100,7 +100,7 @@ impl IntoInner for ChildStdin { fn into_inner(self) -> AnonPipe { self.inner } } -/// A handle to a child procesess's stdout +/// A handle to a child process's stdout #[stable(feature = "process", since = "1.0.0")] pub struct ChildStdout { inner: AnonPipe @@ -121,7 +121,7 @@ impl IntoInner for ChildStdout { fn into_inner(self) -> AnonPipe { self.inner } } -/// A handle to a child procesess's stderr +/// A handle to a child process's stderr #[stable(feature = "process", since = "1.0.0")] pub struct ChildStderr { inner: AnonPipe