Skip to content

Commit

Permalink
Revert "fieldless" back to "C-like"
Browse files Browse the repository at this point in the history
  • Loading branch information
fee1-dead committed Aug 19, 2021
1 parent a004af2 commit fa1da0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/items/enumerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ In two circumstances, the discriminant of a variant may be explicitly set by
following the variant name with `=` and a [constant expression]:


1. if the enumeration is fieldless; e.g.:
1. if the enumeration is "C-like" (i.e., it has no tuple or struct variants); e.g.:

```rust
enum Enum {
Foo = 3,
Bar() = 2,
Baz {} = 1,
Bar = 2,
Baz = 1,
}
```

Expand Down

0 comments on commit fa1da0b

Please sign in to comment.