Skip to content

Commit

Permalink
fix: items should be structs
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jul 27, 2024
1 parent b03b929 commit 664f0d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/priority-queue.cr
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "bisect"
module Priority
alias Value = Int8 | Int16 | Int32 | Int64 | Int128 | Float32 | Float64

class Item(V)
struct Item(V)
include Comparable(Item(V))

def initialize(@priority : Value, @value : V, name = nil)
Expand Down

0 comments on commit 664f0d0

Please sign in to comment.