Skip to content

Commit

Permalink
Replace "Field-Less" with "Fieldless"
Browse files Browse the repository at this point in the history
"-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.
  • Loading branch information
varkor committed Feb 23, 2020
1 parent e5751c9 commit 8ee2b83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/items/enumerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ integer associated to it that is used to determine which variant it holds. An
opaque reference to this discriminant can be obtained with the
[`mem::discriminant`] function.

## Custom Discriminant Values for Field-Less Enumerations
## Custom Discriminant Values for Fieldless Enumerations

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

0 comments on commit 8ee2b83

Please sign in to comment.