From be4332c6a8f93c425d6f9a8f59b2a6dec63f8ffe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Marcos=20Bezerra?= Date: Tue, 15 Dec 2020 15:56:45 -0300 Subject: [PATCH] Removing ambiguity in type-layout.md --- src/type-layout.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/type-layout.md b/src/type-layout.md index 96adc6518..6df9a6095 100644 --- a/src/type-layout.md +++ b/src/type-layout.md @@ -23,12 +23,12 @@ array with that item type including alignment padding. The size of a value is always a multiple of its alignment. The size of a value can be checked with the [`size_of_val`] function. -Types where all values have the same size and alignment known at compile time -implement the [`Sized`] trait and can be checked with the [`size_of`] and -[`align_of`] functions. Types that are not [`Sized`] are known as [dynamically -sized types]. Since all values of a `Sized` type share the same size and -alignment, we refer to those shared values as the size of the type and the -alignment of the type respectively. +Types where all values have the same size and alignment, and both are known at +compile time, implement the [`Sized`] trait and can be checked with the +[`size_of`] and [`align_of`] functions. Types that are not [`Sized`] are known +as [dynamically sized types]. Since all values of a `Sized` type share the same +size and alignment, we refer to those shared values as the size of the type and +the alignment of the type respectively. ## Primitive Data Layout