Skip to content

Commit 5aa2e2a

Browse files
committed
use heapify! instead of heapify
1 parent 1396ead commit 5aa2e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/heaps/mutable_binary_heap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function _make_mutable_binary_heap(ord::Ordering, ty::Type{T}, values) where T
136136
n = length(values)
137137
nodes = Vector{MutableBinaryHeapNode{T}}(undef, n)
138138
nodemap = Vector{Int}(undef, n)
139-
values = heapify(values, ord)
139+
values = heapify!(values, ord)
140140

141141
i::Int = 0
142142
for v in values

0 commit comments

Comments
 (0)