Skip to content

Commit 9198878

Browse files
Update reference/src/glossary.md
Co-authored-by: Mike Leany <[email protected]>
1 parent f390864 commit 9198878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/src/glossary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ requirement of 2.
207207

208208
*Padding* (of a type `T`) refers to the space that the compiler leaves between fields of a struct or enum variant to satisfy alignment requirements, and before/after variants of a union or enum to make all variants equally sized.
209209

210-
Padding can be though of as the type containing secret fields of type `[Pad; N]` for some hypothetical type `Pad` (of size 1) with the following properties:
210+
Padding can be thought of as the type containing secret fields of type `[Pad; N]` for some hypothetical type `Pad` (of size 1) with the following properties:
211211
* `Pad` is valid for any byte, i.e., it has the same validity invariant as `MaybeUninit<u8>`.
212212
* Copying `Pad` ignores the source byte, and writes *any* value to the target byte. Or, equivalently (in terms of Abstract Machine behavior), copying `Pad` marks the target byte as uninitialized.
213213

0 commit comments

Comments
 (0)