diff options
| author | Sean Aubin <[email protected]> | 2023-03-08 13:09:41 -0500 |
|---|---|---|
| committer | Sean Aubin <[email protected]> | 2023-03-08 13:36:27 -0500 |
| commit | 551a36f7c92251e8e035ac9f9f878849af85a459 (patch) | |
| tree | 56edfc0a0ffe05617f81828a5ace25ac453f2a50 | |
| parent | f08af9b24280090c599e30a3ee90b4fbfbcb3aaf (diff) | |
| download | ziglings-551a36f7c92251e8e035ac9f9f878849af85a459.tar.xz ziglings-551a36f7c92251e8e035ac9f9f878849af85a459.zip | |
fix allocate example
| -rw-r--r-- | exercises/095_memory_allocation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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}); // } |
