mirror of
https://git.aramjonghu.dev/AramJonghu/ziglings.git
synced 2026-09-06 02:03:30 +02:00
Insert space for additional async exercises
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
--- exercises/099_memory_allocation.zig 2025-08-15 15:17:57.839348063 +0200
|
||||
+++ answers/099_memory_allocation.zig 2026-04-03 13:09:47.403580391 +0200
|
||||
@@ -64,7 +64,7 @@
|
||||
const allocator = arena.allocator();
|
||||
|
||||
// allocate memory for this array
|
||||
- const avg: []f64 = ???;
|
||||
+ const avg: []f64 = try allocator.alloc(f64, arr.len);
|
||||
|
||||
runningAverage(arr, avg);
|
||||
std.debug.print("Running Average: ", .{});
|
||||
Reference in New Issue
Block a user