Skip to content

Commit 2f61671

Browse files
committed
call it padding
1 parent a6ce041 commit 2f61671

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

reference/src/layout/structs-and-tuples.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,11 @@ struct Foo {
7373
expressions like `foo.0`.)
7474

7575
The degrees of freedom the compiler has when computing the layout of a struct or
76-
tuple is to determine the order of the fields, and the "gaps" before, between,
77-
and after the fields. The layout of these fields themselves is already entirely
78-
determined by their types, and since we intend to allow creating references to
79-
fields (`&s.f1`), structs do not have any wiggle-room there.
76+
tuple is to determine the order of the fields, and the "gaps" (often called
77+
*padding*) before, between, and after the fields. The layout of these fields
78+
themselves is already entirely determined by their types, and since we intend to
79+
allow creating references to fields (`&s.f1`), structs do not have any
80+
wiggle-room there.
8081

8182
This can be visualized as follows:
8283
```text

0 commit comments

Comments
 (0)