chore: rename consturctors to fit convention

This commit is contained in:
2022-10-21 05:11:45 -03:00
parent 80d49e03d6
commit 614ac4a262
6 changed files with 10 additions and 10 deletions

View File

@@ -10,7 +10,7 @@ pub const Scheduler = struct {
tick: u64,
queue: PriorityQueue(Event, void, lessThan),
pub fn new(alloc: Allocator) @This() {
pub fn init(alloc: Allocator) @This() {
var scheduler = Scheduler{ .tick = 0, .queue = PriorityQueue(Event, void, lessThan).init(alloc, {}) };
scheduler.queue.add(.{