Skip to content

Commit 5a5d609

Browse files
DarksonnRalfJung
andauthored
Fix stale "the second" reference
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 247edb4 commit 5a5d609

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/type-layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ The only data layout guarantees made by this representation are those required f
172172
r[layout.repr.rust.layout.struct]
173173
For structs, it is further guaranteed that the fields do not overlap. That is, the fields can be ordered such that the offset plus the size of any field is less than or equal to the offset of the next field in the ordering. The ordering does not have to be the same as the order in which the fields are specified in the declaration of the type.
174174

175-
Be aware that the second guarantee does not imply that the fields have distinct addresses: zero-sized types may have the same address as other fields in the same struct.
175+
Be aware that this guarantee does not imply that the fields have distinct addresses: zero-sized types may have the same address as other fields in the same struct.
176176

177177
r[layout.repr.rust.unspecified]
178178
There are no other guarantees of data layout made by this representation.

0 commit comments

Comments
 (0)