Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
val antonini committed Apr 28, 2024
1 parent a602449 commit 81859bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minheap.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (h *minHeap) pop() (result heapNode) {

result = h.inner[0]

// arbitrarily choose last item has head
// arbitrarily choose last item as head
h.inner[0] = h.inner[len(h.inner)-1]
h.inner = h.inner[:len(h.inner)-1]

Expand Down

0 comments on commit 81859bb

Please sign in to comment.