aboutsummaryrefslogtreecommitdiff
path: root/exercises/069_comptime4.zig
diff options
context:
space:
mode:
authorDave Gauer <dave@ratfactor.com>2021-04-21 17:13:58 -0400
committerDave Gauer <dave@ratfactor.com>2021-04-21 17:13:58 -0400
commit55bede231b2e1069edaf8d73aa565d8382fcb2b4 (patch)
tree419e480bc3563ec55c11c6ab26f2560c9a31b031 /exercises/069_comptime4.zig
parent751b303362f98d8b62364d43cffd4d93034d4e10 (diff)
downloadziglings-55bede231b2e1069edaf8d73aa565d8382fcb2b4.tar.gz
ziglings-55bede231b2e1069edaf8d73aa565d8382fcb2b4.tar.bz2
ziglings-55bede231b2e1069edaf8d73aa565d8382fcb2b4.tar.xz
ziglings-55bede231b2e1069edaf8d73aa565d8382fcb2b4.zip
missing return type from example in 069
Diffstat (limited to 'exercises/069_comptime4.zig')
-rw-r--r--exercises/069_comptime4.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/069_comptime4.zig b/exercises/069_comptime4.zig
index d2aec5e..c1efa46 100644
--- a/exercises/069_comptime4.zig
+++ b/exercises/069_comptime4.zig
@@ -2,7 +2,7 @@
// One of the more common uses of 'comptime' function parameters is
// passing a type to a function:
//
-// fn foo(comptime MyType: type) { ... }
+// fn foo(comptime MyType: type) void { ... }
//
// In fact, types are ONLY available at compile time, so the
// 'comptime' keyword is required here.