Skip to content

Commit 8ee2b83

Browse files
authored
Replace "Field-Less" with "Fieldless"
"-less" is not a suffix that is generally hyphenated, and "field-less" looks odd compared to "fieldless". There's precedent for this choice in https://rust-lang.github.io/unsafe-code-guidelines/layout/enums.html.
1 parent e5751c9 commit 8ee2b83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/enumerations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ integer associated to it that is used to determine which variant it holds. An
6161
opaque reference to this discriminant can be obtained with the
6262
[`mem::discriminant`] function.
6363

64-
## Custom Discriminant Values for Field-Less Enumerations
64+
## Custom Discriminant Values for Fieldless Enumerations
6565

6666
If there is no data attached to *any* of the variants of an enumeration,
6767
then the discriminant can be directly chosen and accessed.

0 commit comments

Comments
 (0)