Skip to content

Commit a4ffcd9

Browse files
committed
Add example of 1-ZST and not to the glossary
1 parent e2a97ac commit a4ffcd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

reference/src/glossary.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ niche.
7777

7878
Types with zero size are called zero-sized types, which is abbreviated as "ZST".
7979
This document also uses the "1-ZST" abbreviation, which stands for "one-aligned
80-
zero-sized type", to refer to zero-sized types with an alignment requirement of
81-
1.
80+
zero-sized type", to refer to zero-sized types with an alignment requirement of 1.
81+
82+
For example, `()` is a "1-ZST" but `[u16; 0]` is not because it has an alignment
83+
requirement of two.
8284

8385
### TODO
8486

0 commit comments

Comments
 (0)