Skip to content

Commit b247e4e

Browse files
authored
tweak wording for repr(transparent) enums
1 parent 3731a86 commit b247e4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/type-layout.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ Like all ways to create undefined behavior in safe Rust, this is a bug.
332332

333333
### The `transparent` Representation
334334

335-
The `transparent` representation can only be used on a [`struct`][structs] that has,
336-
or an [`enum`][enumerations] with a single variant which has:
335+
The `transparent` representation can only be used on a [`struct`][structs]
336+
or an [`enum`][enumerations] with a single variant that has:
337337

338338
- a single field with non-zero size, and
339339
- any number of fields with size 0 and alignment 1 (e.g. [`PhantomData<T>`]).

0 commit comments

Comments
 (0)