File tree 1 file changed +2
-2
lines changed
reference/src/representation
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ The layout of data-carrying enums that do **not** have an explicit
147
147
repr annotation is generally undefined, but with certain specific
148
148
exceptions: see the next section for details.
149
149
150
- #### Non-C-compatible representation selected
150
+ #### Explicit repr annotation without C compatibility
151
151
152
152
When an enum is tagged with ` #[repr(Int)] ` for some integral type
153
153
` Int ` (e.g., ` #[repr(u8)] ` ), it will be represented as a C-union of a
@@ -190,7 +190,7 @@ Note that the `TwoCasesVariantA` and `TwoCasesVariantB` structs are
190
190
appears at offset 0 in both cases, so that we can read it to determine
191
191
the current variant.
192
192
193
- #### C-compatible representation selected
193
+ #### Explicit repr annotation with C compatibility
194
194
195
195
When the ` #[repr] ` tag includes ` C ` , e.g., ` #[repr(C)] ` or `#[ repr(C,
196
196
u8)] `, the layout of enums is changed to better match C++ enums. In
You can’t perform that action at this time.
0 commit comments