diff --git a/src/doc/nomicon/safe-unsafe-meaning.md b/src/doc/nomicon/safe-unsafe-meaning.md index 827ea255053c..5fd61eb51dd1 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 5f1ace19f6d7..023edf29341e 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 f9dc65b95aad..e164fbf6d815 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 4e80fb2ceb09..6e3c5eaf217f 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