Skip to content

Commit b3d85c7

Browse files
committed
Improve comment wording
1 parent 40d54aa commit b3d85c7

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
@@ -113,7 +113,7 @@ function _binary_heap_pop!(ord::Ordering,
113113
if nd_id == lastindex(nodes)
114114
pop!(nodes)
115115
else
116-
# otherwise we need to swap the node-to-remove with the last node
116+
# move the last node to the position of the node-to-remove
117117
@inbounds nodes[nd_id] = new_rt = nodes[end]
118118
pop!(nodes)
119119
@inbounds nodemap[new_rt.handle] = nd_id

0 commit comments

Comments
 (0)