Skip to content

Commit 823937c

Browse files
committed
Fix typo
1 parent 3262a0a commit 823937c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

reference/src/glossary.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,17 @@ In this document, *layout* and *representation* are not synonyms.
6161

6262
#### Niche
6363

64-
Invalid bit-patters that will be used by layout optimizations.
64+
Invalid bit-patterns that will be used by layout optimizations.
6565

6666
For example, `&mut T` has at least one niche, the "all zeros" bit-pattern. This
6767
niche is used by layout optimizations like "`enum` discriminant elision" to
6868
guarantee that `Option<&mut T>` has the same size as `&mut T`.
6969

70+
While all niches are invalid bit-patterns, not all invalid bit-patterns are
71+
niches. For example, the "all bits uninitialized" is an invalid bit-pattern for
72+
`&mut T`, but this bit-pattern is not used by layout optimizations, and is not a
73+
niche.
74+
7075

7176
### TODO
7277

0 commit comments

Comments
 (0)