| author | |
| committer | |
| log | e536253dfa273852a2a4918ab806aa91e3f68c70 |
| tree | d6c3ac6c7f5e76a3268d0b5f3b18bdfd95767c9d |
| parent | d6005ee08b2f5ce3c4554fa7f91e733f58b1a434 |
1 files changed, 1 insertions(+), 1 deletions(-)
src/lib.zig+1-1| ... | ... | @@ -41,7 +41,7 @@ fn clean(out: anytype, n: usize) !void { |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | pub fn forEnum(out: anytype, in: anytype, comptime prompt: []const u8, alloc: std.mem.Allocator, comptime E: type, default: ?E) !E { |
| 44 | comptime std.debug.assert(@typeInfo(E) == .Enum); | |
| 44 | comptime std.debug.assert(@typeInfo(E) == .@"enum"); | |
| 45 | 45 | const def: ?[]const u8 = if (default) |d| @tagName(d) else null; |
| 46 | 46 | |
| 47 | 47 | try out.print(comptime ansi.color.Fg(.Green, "? "), .{}); |