Skip to content

Commit 8cdbf45

Browse files
committed
Clarify repr(rust) list is about structs only
1 parent 857cf11 commit 8cdbf45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/type-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ r[layout.repr.rust.intro]
164164
The `Rust` representation is the default representation for nominal types without a `repr` attribute. Using this representation explicitly through a `repr` attribute is guaranteed to be the same as omitting the attribute entirely.
165165

166166
r[layout.repr.rust.layout]
167-
The only data layout guarantees made by this representation are those required for soundness. They are:
167+
The only data layout guarantees made by this representation are those required for soundness. For structs these are:
168168

169169
1. The fields are properly aligned.
170170
2. The fields do not overlap.

0 commit comments

Comments
 (0)