Skip to content

Commit

Permalink
Update training-slides/src/compound-types.md
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelraz authored Feb 28, 2024
1 parent 4b76ee2 commit c3416e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion training-slides/src/compound-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ The tag in an enum specifies which variant is currently valid, and is stored as
smallest integer the compiler can get away with - it depends how many variants you
have. Of course, if none of the variants have any data, the enum is *just* the tag.

If you have a C background, you can this of this as being a `struct` containing an `int`
If you have a C background, you can think of this as being a `struct` containing an `int`
and a `union`.

## Doing a `match` on an `enum`
Expand Down

0 comments on commit c3416e6

Please sign in to comment.