From e92107f5fcbf42e061f46bb6f1334fd66d65df09 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Sat, 13 Feb 2021 20:35:07 -0500 Subject: ex10 - missing type was confusing and tangential (#12) --- exercises/10_if2.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/10_if2.zig b/exercises/10_if2.zig index 0925d18..ba9c2df 100644 --- a/exercises/10_if2.zig +++ b/exercises/10_if2.zig @@ -10,7 +10,7 @@ pub fn main() void { // Please use an if...else expression to set "price". // If discount is true, the price should be $17, otherwise $20: - var price = if ???; + var price: u8 = if ???; std.debug.print("With the discount, the price is ${}.\n", .{price}); } -- cgit v1.2.3-ZIG