Skip to content

Commit fa1da0b

Browse files
committed
Revert "fieldless" back to "C-like"
1 parent a004af2 commit fa1da0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/items/enumerations.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ In two circumstances, the discriminant of a variant may be explicitly set by
7878
following the variant name with `=` and a [constant expression]:
7979

8080

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

8383
```rust
8484
enum Enum {
8585
Foo = 3,
86-
Bar() = 2,
87-
Baz {} = 1,
86+
Bar = 2,
87+
Baz = 1,
8888
}
8989
```
9090

0 commit comments

Comments
 (0)