From c3416e605f9422ce84cd2369c30172bdf4e7ef59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20Raz=20Guzm=C3=A1n=20Macedo?= Date: Wed, 28 Feb 2024 06:30:58 -0600 Subject: [PATCH] Update training-slides/src/compound-types.md --- training-slides/src/compound-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/training-slides/src/compound-types.md b/training-slides/src/compound-types.md index c4f52648..799d68bb 100644 --- a/training-slides/src/compound-types.md +++ b/training-slides/src/compound-types.md @@ -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`