1
0
Fork 0
mirror of https://github.com/ratfactor/ziglings synced 2024-05-26 02:06:16 +02:00

fix allocate example

This commit is contained in:
Sean Aubin 2023-03-08 13:09:41 -05:00
parent 00d7b7f9a0
commit bb54604e17

View File

@ -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});
// }