Skip to content

Commit 4515957

Browse files
Centrilehuss
authored andcommitted
tweak wording for repr(transparent) enums
1 parent 52a16e5 commit 4515957

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
@@ -357,8 +357,8 @@ Like all ways to create undefined behavior in safe Rust, this is a bug.
357357

358358
### The `transparent` Representation
359359

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

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

0 commit comments

Comments
 (0)