Просмотр исходного кода

Fix reference to slice_ptr in example code

Kim SHrier 2 лет назад
Родитель
Сommit
b072c0014c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      exercises/096_memory_allocation.zig

+ 1 - 1
exercises/096_memory_allocation.zig

@@ -27,7 +27,7 @@
 //         std.debug.print("ptr={*}\n", .{ptr});
 //
 //         const slice_ptr = try allocator.alloc(f64, 5);
-//         std.debug.print("ptr={*}\n", .{ptr});
+//         std.debug.print("slice_ptr={*}\n", .{slice_ptr});
 //     }
 
 // Instead of an simple integer or a constant sized slice, this