Skip to content

Commit 9e9f4f4

Browse files
authored
Merge pull request #911 from marcospb19/patch-1
Removing ambiguity in type-layout.md
2 parents a8afdca + be4332c commit 9e9f4f4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/type-layout.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ array with that item type including alignment padding. The size of a value is
2323
always a multiple of its alignment. The size of a value can be checked with the
2424
[`size_of_val`] function.
2525

26-
Types where all values have the same size and alignment known at compile time
27-
implement the [`Sized`] trait and can be checked with the [`size_of`] and
28-
[`align_of`] functions. Types that are not [`Sized`] are known as [dynamically
29-
sized types]. Since all values of a `Sized` type share the same size and
30-
alignment, we refer to those shared values as the size of the type and the
31-
alignment of the type respectively.
26+
Types where all values have the same size and alignment, and both are known at
27+
compile time, implement the [`Sized`] trait and can be checked with the
28+
[`size_of`] and [`align_of`] functions. Types that are not [`Sized`] are known
29+
as [dynamically sized types]. Since all values of a `Sized` type share the same
30+
size and alignment, we refer to those shared values as the size of the type and
31+
the alignment of the type respectively.
3232

3333
## Primitive Data Layout
3434

0 commit comments

Comments
 (0)