aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-01-21 17:23:09 -0500
committerDave Gauer <dave@ratfactor.com>2021-01-21 17:23:09 -0500
commita361b90a7562bcc5a62f863b42ae6a33aaa4b812 (patch)
tree15a010f9fddf75657a7fdcf62acdd2050164c022
parentb02845819a661aa97ad25c3f1afc53c4b958e797 (diff)
downloadziglings-a361b90a7562bcc5a62f863b42ae6a33aaa4b812.tar.gz
ziglings-a361b90a7562bcc5a62f863b42ae6a33aaa4b812.tar.bz2
ziglings-a361b90a7562bcc5a62f863b42ae6a33aaa4b812.tar.xz
ziglings-a361b90a7562bcc5a62f863b42ae6a33aaa4b812.zip
Hinting return type rather than making 'em guess.
-rw-r--r--18_functions.zig2
1 files changed, 1 insertions, 1 deletions
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});
}