chore: update to latest zig master

This commit is contained in:
2023-02-22 14:46:46 -06:00
parent e380af7056
commit 024151a5c1
11 changed files with 32 additions and 44 deletions

View File

@@ -73,7 +73,7 @@ pub const Scheduler = struct {
/// Removes the **first** scheduled event of type `needle`
pub fn removeScheduledEvent(self: *Self, needle: EventKind) void {
for (self.queue.items) |event, i| {
for (self.queue.items, 0..) |event, i| {
if (std.meta.eql(event.kind, needle)) {
// invalidates the slice we're iterating over