From 551a36f7c92251e8e035ac9f9f878849af85a459 Mon Sep 17 00:00:00 2001 From: Sean Aubin Date: Wed, 8 Mar 2023 13:09:41 -0500 Subject: [PATCH] fix allocate example --- exercises/095_memory_allocation.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}); // }