Skip to content

Commit a2be58b

Browse files
committed
Amend data-carrying enums definition
1 parent 053531c commit a2be58b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: reference/src/layout/enums.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ As in C, discriminant values that are not specified are defined as
4646
either 0 (for the first variant) or as one more than the prior
4747
variant.
4848

49-
**Data-carrying enums.** Enums whose variants have fields are called
50-
"data-carrying" enums. Note that for the purposes of this definition,
51-
it is not relevant whether those fields are zero-sized. Therefore this
52-
enum is considered "data-carrying":
49+
**Data-carrying enums.** Enums with at least one variant with fields are called
50+
"data-carrying" enums. Note that for the purposes of this definition, it is not
51+
relevant whether the variant fields are zero-sized. Therefore this enum is
52+
considered "data-carrying":
5353

5454
```rust
5555
enum Foo {

0 commit comments

Comments
 (0)