Skip to content

Commit c99b2f7

Browse files
committed
clarify section headers a bit more
1 parent 774b125 commit c99b2f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/src/representation/enums.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ The layout of data-carrying enums that do **not** have an explicit
147147
repr annotation is generally undefined, but with certain specific
148148
exceptions: see the next section for details.
149149

150-
#### Non-C-compatible representation selected
150+
#### Explicit repr annotation without C compatibility
151151

152152
When an enum is tagged with `#[repr(Int)]` for some integral type
153153
`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
190190
appears at offset 0 in both cases, so that we can read it to determine
191191
the current variant.
192192

193-
#### C-compatible representation selected
193+
#### Explicit repr annotation with C compatibility
194194

195195
When the `#[repr]` tag includes `C`, e.g., `#[repr(C)]` or `#[repr(C,
196196
u8)]`, the layout of enums is changed to better match C++ enums. In

0 commit comments

Comments
 (0)