mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-12-21 21:53:11 -05:00
Hinting return type rather than making 'em guess.
This commit is contained in:
parent
b02845819a
commit
a361b90a75
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue