Sobeston / zig.guide

Repo for https://zig.guide content. Get up to speed with Zig quickly.
https://zig.guide
MIT License
689 stars 177 forks source link

Update chapter-5.md #124

Closed hnakamur closed 3 years ago

hnakamur commented 3 years ago

In zig 0.8.1, std.PriorityQueue.init signature is

pub fn init(allocator: *Allocator, compareFn: fn (a: T, b: T) Order) Self

https://github.com/ziglang/zig/blob/0.8.1/lib/std/priority_queue.zig#L34

hnakamur commented 3 years ago

Sorry, this is a duplication of https://github.com/Sobeston/ziglearn/pull/122 I'm closing this.