mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-11 01:20:00 +00:00
mention builtin ex coming up
This commit is contained in:
@@ -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);
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user