fixed removed array multiplication

This commit is contained in:
Chris Boesch
2026-05-04 17:15:30 +02:00
parent 1ba1e301a8
commit 8af3372cf2
14 changed files with 51 additions and 64 deletions

View File

@@ -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| {