diff options
| author | lording <[email protected]> | 2023-06-22 08:23:01 +0000 |
|---|---|---|
| committer | lording <[email protected]> | 2023-06-22 08:23:01 +0000 |
| commit | 39952817b30f6579653d38cbdafa0ad0b474b259 (patch) | |
| tree | efd58abae841a19eb1e3e82dd65912463c6c4f70 | |
| parent | f09a87c348bafb134e3f5eca0ef654cc2a20ceef (diff) | |
| download | ziglings-39952817b30f6579653d38cbdafa0ad0b474b259.tar.xz ziglings-39952817b30f6579653d38cbdafa0ad0b474b259.zip | |
Fix broken builtin name in exercise 36
| -rw-r--r-- | exercises/036_enums2.zig | 6 | ||||
| -rw-r--r-- | patches/patches/036_enums2.patch | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/exercises/036_enums2.zig b/exercises/036_enums2.zig index 820a71e..1477b20 100644 --- a/exercises/036_enums2.zig +++ b/exercises/036_enums2.zig @@ -57,8 +57,8 @@ pub fn main() void { \\</p> \\ , .{ - @enumToInt(Color.red), - @enumToInt(Color.green), - @enumToInt(???), // Oops! We're missing something! + @intFromEnum(Color.red), + @intFromEnum(Color.green), + @intFromEnum(???), // Oops! We're missing something! }); } diff --git a/patches/patches/036_enums2.patch b/patches/patches/036_enums2.patch index c20905a..367b780 100644 --- a/patches/patches/036_enums2.patch +++ b/patches/patches/036_enums2.patch @@ -7,6 +7,6 @@ --- > \\ <span style="color: #{x:0>6}">Blue</span> 62c62 -< @enumToInt(???), // Oops! We're missing something! +< @intFromEnum(???), // Oops! We're missing something! --- -> @enumToInt(Color.blue), // Oops! We're missing something! +> @intFromEnum(Color.blue), // Oops! We're missing something! |
