aboutsummaryrefslogtreecommitdiff
path: root/exercises
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-02-13 20:35:07 -0500
committerDave Gauer <dave@ratfactor.com>2021-02-13 20:35:07 -0500
commite92107f5fcbf42e061f46bb6f1334fd66d65df09 (patch)
tree4d0e6aa91ca406396425648a56f48d2f6679cbd8 /exercises
parent8133b22be1d51589771df40e8d5e4bc2f3ba3b8e (diff)
downloadziglings-e92107f5fcbf42e061f46bb6f1334fd66d65df09.tar.gz
ziglings-e92107f5fcbf42e061f46bb6f1334fd66d65df09.tar.bz2
ziglings-e92107f5fcbf42e061f46bb6f1334fd66d65df09.tar.xz
ziglings-e92107f5fcbf42e061f46bb6f1334fd66d65df09.zip
ex10 - missing type was confusing and tangential (#12)
Diffstat (limited to 'exercises')
-rw-r--r--exercises/10_if2.zig2
1 files changed, 1 insertions, 1 deletions
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});
}