Update outdated comments
This commit is contained in:
parent
973625552a
commit
b3a254fcfd
3 changed files with 7 additions and 7 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue