aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises/010_if2.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/010_if2.zig')
-rw-r--r--exercises/010_if2.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/010_if2.zig b/exercises/010_if2.zig
index f0ffb43..7bbc01c 100644
--- a/exercises/010_if2.zig
+++ b/exercises/010_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:
- const price: u8 = if ???;
+ const price: u8 = if (discount) 17 else 20;
std.debug.print("With the discount, the price is ${}.\n", .{price});
}