From 5257941f40554da3f8df074443a4c087dcff7004 Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 10 Dec 2022 23:02:40 +0000 Subject: 25-60 complete --- exercises/036_enums2.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'exercises/036_enums2.zig') diff --git a/exercises/036_enums2.zig b/exercises/036_enums2.zig index 820a71e..c1e5c9b 100644 --- a/exercises/036_enums2.zig +++ b/exercises/036_enums2.zig @@ -31,7 +31,7 @@ const std = @import("std"); const Color = enum(u32) { red = 0xff0000, green = 0x00ff00, - blue = ???, + blue = 0x0000ff, }; pub fn main() void { @@ -53,12 +53,12 @@ pub fn main() void { \\

\\ Red \\ Green - \\ Blue + \\ Blue \\

\\ , .{ @enumToInt(Color.red), @enumToInt(Color.green), - @enumToInt(???), // Oops! We're missing something! + @enumToInt(Color.blue), }); } -- cgit v1.2.3-ZIG