|
|
@ -62,7 +62,6 @@ pub fn main() void {
|
|
|
|
|
|
|
|
|
|
|
|
// Note how this function's "c" parameter is a pointer to a Character struct.
|
|
|
|
// Note how this function's "c" parameter is a pointer to a Character struct.
|
|
|
|
fn printCharacter(c: *Character) void {
|
|
|
|
fn printCharacter(c: *Character) void {
|
|
|
|
|
|
|
|
|
|
|
|
// Here's something you haven't seen before: when switching an enum, you
|
|
|
|
// Here's something you haven't seen before: when switching an enum, you
|
|
|
|
// don't have to write the full enum name. Zig understands that ".wizard"
|
|
|
|
// don't have to write the full enum name. Zig understands that ".wizard"
|
|
|
|
// means "Class.wizard" when we switch on a Class enum value:
|
|
|
|
// means "Class.wizard" when we switch on a Class enum value:
|
|
|
|