From be87134397d1728b3d98d1229d241254130e0708 Mon Sep 17 00:00:00 2001 From: Sean Aubin Date: Wed, 8 Mar 2023 19:22:17 -0500 Subject: change empty init to '???' placeholder --- exercises/096_memory_allocation.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'exercises/096_memory_allocation.zig') diff --git a/exercises/096_memory_allocation.zig b/exercises/096_memory_allocation.zig index 057b420..7843b93 100644 --- a/exercises/096_memory_allocation.zig +++ b/exercises/096_memory_allocation.zig @@ -61,8 +61,8 @@ pub fn main() !void { // initialize the allocator const allocator = arena.allocator(); - // allocate memory for this array instead of empty initialization - var avg: []f64 = {}; + // allocate memory for this array + var avg: []f64 = ???; runningAverage(arr, avg); std.debug.print("Running Average: ", .{}); -- cgit v1.2.3