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 8f643f0 commit 2264855
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/const_eval.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ A _const context_ is one of the following:
[constants]: items/constant-items.md
[dereference operator]: expressions/operator-expr.md#the-dereference-operator
[destructors]: destructors.md
[enum discriminants]: items/enumerations.md#custom-discriminant-values-for-field-less-enumerations
[enum discriminants]: items/enumerations.md#custom-discriminant-values-for-fieldless-enumerations
[enum variant]: expressions/enum-variant-expr.md
[expression statements]: statements.md#expression-statements
[expressions]: expressions.md
Expand Down
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
2 changes: 1 addition & 1 deletion src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ used with any other representation.
[`size_of`]: ../std/mem/fn.size_of.html
[`Sized`]: ../std/marker/trait.Sized.html
[dynamically sized types]: dynamically-sized-types.md
[C-like enumerations]: items/enumerations.md#custom-discriminant-values-for-field-less-enumerations
[C-like enumerations]: items/enumerations.md#custom-discriminant-values-for-fieldless-enumerations
[zero-variant enumerations]: items/enumerations.md#zero-variant-enums
[undefined behavior]: behavior-considered-undefined.md
[27060]: https://github.com/rust-lang/rust/issues/27060
Expand Down

0 comments on commit 2264855

Please sign in to comment.