Skip to content

Commit e64c06c

Browse files
Apply suggestions from code review
Co-authored-by: Alex Ruzenhack <[email protected]>
1 parent 374567d commit e64c06c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/priority_queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export default class PriorityQueue<T = unknown> {
166166
private _siftDown() {
167167
// Start from the top index and work our way down the heap
168168
let node = this.#top;
169-
// If a child is in the heap and has higher prioroty, swap with parent and go down
169+
// If a child is in the heap and has higher priority, swap with parent and go down
170170
while (
171171
(this.left(node) < this.size && this._greater(this.left(node), node)) ||
172172
(this.right(node) < this.size && this._greater(this.right(node), node))

0 commit comments

Comments
 (0)