Hinting return type rather than making 'em guess.

This commit is contained in:
Dave Gauer 2021-01-21 17:23:09 -05:00
parent b02845819a
commit a361b90a75

View file

@ -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});
}