diff options
| author | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-05-04 17:15:30 +0200 |
|---|---|---|
| committer | Chris Boesch <chrboesch@noreply.codeberg.org> | 2026-05-04 17:15:30 +0200 |
| commit | 8af3372cf204861f8541f91e47543f1b33337c5b (patch) | |
| tree | a333fe8d515ae8fad19a94e37bdc4649f6dd662c /exercises/074_comptime9.zig | |
| parent | 1ba1e301a8a977f652157ca60a0522c95bc736aa (diff) | |
fixed removed array multiplication
Diffstat (limited to 'exercises/074_comptime9.zig')
| -rw-r--r-- | exercises/074_comptime9.zig | 2 |
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| { |
