diff --git a/exercises/095_memory_allocation.zig b/exercises/095_memory_allocation.zig index ff54edf..057b420 100644 --- a/exercises/095_memory_allocation.zig +++ b/exercises/095_memory_allocation.zig @@ -25,7 +25,7 @@ // const ptr = try allocator.create(i32); // std.debug.print("ptr={*}\n", .{ptr}); // -// const slice_ptr = try allocator.create(f64, 5); +// const slice_ptr = try allocator.alloc(f64, 5); // std.debug.print("ptr={*}\n", .{ptr}); // }