Skip to content

Commit

Permalink
tweak wording for repr(transparent) enums
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril authored Apr 8, 2020
1 parent 3731a86 commit b247e4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/type-layout.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@ Like all ways to create undefined behavior in safe Rust, this is a bug.

### The `transparent` Representation

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

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

0 comments on commit b247e4e

Please sign in to comment.