aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/exercises
diff options
context:
space:
mode:
authorChris Boesch <chrboesch@noreply.codeberg.org>2023-02-19 00:30:10 +0100
committerGitHub <noreply@github.com>2023-02-19 00:30:10 +0100
commitb2de68869ed16a607c00a31d4ea9f140f8a0089e (patch)
tree698abe353a238b5b7d4e0bbdac14dbb301ea9657 /exercises
parent9f08e1efe470d768be806eff9a322d8324972712 (diff)
parente92858bd6566525aa6cc03e9898b5e8b4006f7b5 (diff)
Merge pull request #188 from chrboesch/issue_185
issue 185, description improved
Diffstat (limited to 'exercises')
-rw-r--r--exercises/026_hello2.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/exercises/026_hello2.zig b/exercises/026_hello2.zig
index cb29193..384cb55 100644
--- a/exercises/026_hello2.zig
+++ b/exercises/026_hello2.zig
@@ -7,8 +7,13 @@ const std = @import("std");
// Take note that this main() definition now returns "!void" rather
// than just "void". Since there's no specific error type, this means
-// that Zig will infer the error type. This is appropriate in the case
-// of main(), but can have consequences elsewhere.
+// that Zig will infer the error type. This is appropriate in the
+// case of main(), but can make a function harder (function pointers)
+// or even impossible to work with (recursion) in some situations.
+//
+// You can find more information at:
+// https://ziglang.org/documentation/master/#Inferred-Error-Sets
+//
pub fn main() !void {
// We get a Writer for Standard Out so we can print() to it.
const stdout = std.io.getStdOut().writer();