Update outdated comments

This commit is contained in:
lording 2023-06-22 12:11:24 +00:00
parent 973625552a
commit b3a254fcfd
3 changed files with 7 additions and 7 deletions

View file

@ -6,10 +6,10 @@
// const Stuff = enum(u8){ foo = 16 };
//
// You can get the integer out with a builtin function,
// @enumToInt(). We'll learn about builtins properly in a later
// @intFromEnum(). We'll learn about builtins properly in a later
// exercise.
//
// const my_stuff: u8 = @enumToInt(Stuff.foo);
// const my_stuff: u8 = @intFromEnum(Stuff.foo);
//
// Note how that built-in function starts with "@" just like the
// @import() function we've been using.