From d36621903868136b2ce347e9be9c937e664e1e74 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 29 Jul 2021 04:41:40 -0700 Subject: [PATCH] fix easter egg in example program --- src/main.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.zig b/src/main.zig index 2b4814fd4d8e51497d2b1aebdb401cbeaca873a2..0073b46b8601748fc72032048a2bcc4ab6bb7770 100644 --- a/src/main.zig +++ b/src/main.zig @@ -27,7 +27,7 @@ pub fn main() !void { const comment = try inquirer.forString(out, in, "Any comments on your purchase experience?", alloc, "Nope, all good!"); - if (std.mem.eql(u8, comment, "")) { + if (!std.mem.eql(u8, comment, "Nope, all good!")) { _ = try inquirer.forEnum(out, in, "For leaving a comment, you get a freebie:", alloc, enum { Cake, Fries }, null); } } -- 2.54.0