File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ As in C, discriminant values that are not specified are defined as
46
46
either 0 (for the first variant) or as one more than the prior
47
47
variant.
48
48
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":
53
53
54
54
``` rust
55
55
enum Foo {
You can’t perform that action at this time.
0 commit comments