remove superfluous slicing syntax

This commit is contained in:
Qwerasd
2024-08-08 19:10:00 -04:00
parent e4ab550ea1
commit bdbf5ad1c7

View File

@ -118,7 +118,7 @@ pub const Contents = struct {
const cell_count = size.columns * size.rows;
const bg_cells = (try alloc.alloc(mtl_shaders.CellBg, cell_count))[0..cell_count];
const bg_cells = try alloc.alloc(mtl_shaders.CellBg, cell_count);
errdefer alloc.free(bg_cells);
@memset(bg_cells, .{0, 0, 0, 0});