| ... | @@ -176,7 +176,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V | ... | @@ -176,7 +176,7 @@ inline fn do(alloc: std.mem.Allocator, writer: anytype, comptime value: astgen.V |
| 176 | comptime assertEqual(v.args.len, 2); | 176 | comptime assertEqual(v.args.len, 2); |
| 177 | const y = resolveArg(v.args[1], data, ctx); | 177 | const y = resolveArg(v.args[1], data, ctx); |
| 178 | if (@typeInfo(@TypeOf(x)) == .Enum and comptime std.meta.trait.isZigString(@TypeOf(y))) { | 178 | if (@typeInfo(@TypeOf(x)) == .Enum and comptime std.meta.trait.isZigString(@TypeOf(y))) { |
| 179 | return try doif(alloc, writer, body, bottom, data, ctx, opts, std.mem.eql(u8, @tagName(x), y)); | 179 | return try doif(alloc, writer, body, bottom, data, ctx, opts, !std.mem.eql(u8, @tagName(x), y)); |
| 180 | } | 180 | } |
| 181 | try doif(alloc, writer, body, bottom, data, ctx, opts, x != y); | 181 | try doif(alloc, writer, body, bottom, data, ctx, opts, x != y); |
| 182 | }, | 182 | }, |