aboutsummaryrefslogtreecommitdiff
path: root/exercises/036_enums2.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-10 14:45:25 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-10 14:45:25 -0400
commit4251076b50082023f609e2823b143993f7749b57 (patch)
tree8e307b81417a4755b78d18f34ecfef6777964baa /exercises/036_enums2.zig
parent88a8f4788db2fde6f8e957abe3fceacf530d011c (diff)
downloadziglings-4251076b50082023f609e2823b143993f7749b57.tar.gz
ziglings-4251076b50082023f609e2823b143993f7749b57.tar.bz2
ziglings-4251076b50082023f609e2823b143993f7749b57.tar.xz
ziglings-4251076b50082023f609e2823b143993f7749b57.zip
mention builtin ex coming up
Diffstat (limited to 'exercises/036_enums2.zig')
-rw-r--r--exercises/036_enums2.zig4
1 files changed, 3 insertions, 1 deletions
diff --git a/exercises/036_enums2.zig b/exercises/036_enums2.zig
index e6337e9..820a71e 100644
--- a/exercises/036_enums2.zig
+++ b/exercises/036_enums2.zig
@@ -5,7 +5,9 @@
//
// const Stuff = enum(u8){ foo = 16 };
//
-// You can get the integer out with a built-in function:
+// You can get the integer out with a builtin function,
+// @enumToInt(). We'll learn about builtins properly in a later
+// exercise.
//
// var my_stuff: u8 = @enumToInt(Stuff.foo);
//