about summary refs log tree commit diff
path: root/src/libcore/mem
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2020-07-23 00:42:01 -0700
committerGitHub <noreply@github.com>2020-07-23 00:42:01 -0700
commit9be109910713660e666f83ebdc6a6e717391e647 (patch)
tree88d4fd2241a4b466a41166738bc5624c8b375ff7 /src/libcore/mem
parente8b55a4ad230ebec762fdfc4f241ba98a98560af (diff)
parent133e91da627a42218721caf2083c3f309e1b0dcc (diff)
downloadrust-9be109910713660e666f83ebdc6a6e717391e647.tar.gz
rust-9be109910713660e666f83ebdc6a6e717391e647.zip
Rollup merge of #74141 - euclio:typos, r=steveklabnik
libstd/libcore: fix various typos
Diffstat (limited to 'src/libcore/mem')
-rw-r--r--src/libcore/mem/mod.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs
index d62de7617a0..6ff7baab70f 100644
--- a/src/libcore/mem/mod.rs
+++ b/src/libcore/mem/mod.rs
@@ -348,11 +348,11 @@ pub fn size_of_val<T: ?Sized>(val: &T) -> usize {
 ///
 /// - If `T` is `Sized`, this function is always safe to call.
 /// - If the unsized tail of `T` is:
-///     - a [slice], then the length of the slice tail must be an intialized
+///     - a [slice], then the length of the slice tail must be an initialized
 ///       integer, and the size of the *entire value*
 ///       (dynamic tail length + statically sized prefix) must fit in `isize`.
 ///     - a [trait object], then the vtable part of the pointer must point
-///       to a valid vtable acquired by an unsizing coersion, and the size
+///       to a valid vtable acquired by an unsizing coercion, and the size
 ///       of the *entire value* (dynamic tail length + statically sized prefix)
 ///       must fit in `isize`.
 ///     - an (unstable) [extern type], then this function is always safe to
@@ -483,11 +483,11 @@ pub fn align_of_val<T: ?Sized>(val: &T) -> usize {
 ///
 /// - If `T` is `Sized`, this function is always safe to call.
 /// - If the unsized tail of `T` is:
-///     - a [slice], then the length of the slice tail must be an intialized
+///     - a [slice], then the length of the slice tail must be an initialized
 ///       integer, and the size of the *entire value*
 ///       (dynamic tail length + statically sized prefix) must fit in `isize`.
 ///     - a [trait object], then the vtable part of the pointer must point
-///       to a valid vtable acquired by an unsizing coersion, and the size
+///       to a valid vtable acquired by an unsizing coercion, and the size
 ///       of the *entire value* (dynamic tail length + statically sized prefix)
 ///       must fit in `isize`.
 ///     - an (unstable) [extern type], then this function is always safe to