diff options
| author | Dave Gauer <[email protected]> | 2021-02-13 20:35:07 -0500 |
|---|---|---|
| committer | Dave Gauer <[email protected]> | 2021-02-13 20:35:07 -0500 |
| commit | ee8fbbd65d18706aea420563a3faaf016b026658 (patch) | |
| tree | 4d0e6aa91ca406396425648a56f48d2f6679cbd8 | |
| parent | 7023b5345c4fc29aa58aebf47d1968c466da30e2 (diff) | |
| download | ziglings-ee8fbbd65d18706aea420563a3faaf016b026658.tar.xz ziglings-ee8fbbd65d18706aea420563a3faaf016b026658.zip | |
ex10 - missing type was confusing and tangential (#12)
| -rw-r--r-- | exercises/10_if2.zig | 2 |
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}); } |
