summaryrefslogtreecommitdiff
path: root/exercises/074_comptime9.zig
diff options
context:
space:
mode:
Diffstat (limited to 'exercises/074_comptime9.zig')
-rw-r--r--exercises/074_comptime9.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/exercises/074_comptime9.zig b/exercises/074_comptime9.zig
index 1fc8e31..dfdc588 100644
--- a/exercises/074_comptime9.zig
+++ b/exercises/074_comptime9.zig
@@ -32,7 +32,7 @@ fn makeCreature(comptime count: usize, comptime fmt: []const u8) [count]Animal {
// We return an array of animals representing the creature. (This is why we
// really needed the 'count' parameter. Arrays need a size.)
- var animals: [count]Animal = .{undefined} ** count;
+ var animals: [count]Animal = undefined;
var next_animal: usize = 0;
inline for (fmt) |char| {