mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-06-08 07:50:00 +00:00
var to const when posssible
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// @enumToInt(). We'll learn about builtins properly in a later
|
||||
// exercise.
|
||||
//
|
||||
// var my_stuff: u8 = @enumToInt(Stuff.foo);
|
||||
// const my_stuff: u8 = @enumToInt(Stuff.foo);
|
||||
//
|
||||
// Note how that built-in function starts with "@" just like the
|
||||
// @import() function we've been using.
|
||||
|
||||
Reference in New Issue
Block a user