Skip to content

Commit

Permalink
Merge pull request #361 from makeusabrew/patch-1
Browse files Browse the repository at this point in the history
Fix small typo on enums.md
  • Loading branch information
RalfJung committed Sep 9, 2022
2 parents 823ed27 + 5b10d59 commit 36661ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/src/layout/enums.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ variants.
This layout, while more compatible and arguably more obvious, is also
less efficient than the non-C compatible layout in some cases in terms
of total size. For example, the `TwoCases` example given in the
preivous section only occupies 4 bytes with `#[repr(u8)]`, but would
previous section only occupies 4 bytes with `#[repr(u8)]`, but would
occupy 6 bytes with `#[repr(C, u8)]`, as more padding is required.

**Example.** The following enum:
Expand Down

0 comments on commit 36661ec

Please sign in to comment.