From a361b90a7562bcc5a62f863b42ae6a33aaa4b812 Mon Sep 17 00:00:00 2001 From: Dave Gauer Date: Thu, 21 Jan 2021 17:23:09 -0500 Subject: Hinting return type rather than making 'em guess. --- 18_functions.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/18_functions.zig b/18_functions.zig index 07c63ec..ad16a13 100644 --- a/18_functions.zig +++ b/18_functions.zig @@ -5,7 +5,7 @@ const std = @import("std"); pub fn main() void { // The new function deepThought() should return the number 42. See below. - const answer = deepThought(); + const answer: u8 = deepThought(); std.debug.print("Answer to the Ultimate Question: {}\n", .{answer}); } -- cgit v1.2.3-ZIG