Hinting return type rather than making 'em guess.

pull/2/head
Dave Gauer 4 years ago
parent b02845819a
commit a361b90a75

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

Loading…
Cancel
Save