We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 23fc268 + 8184865 commit 60f0b30Copy full SHA for 60f0b30
src/exception-safety.md
@@ -104,7 +104,7 @@ code and the unsafe code into two separate phases:
104
```text
105
bubble_up(heap, index):
106
let end_index = index;
107
- while end_index != 0 && heap[end_index] < heap[parent(end_index)]:
+ while end_index != 0 && heap[index] < heap[parent(end_index)]:
108
end_index = parent(end_index)
109
110
let elem = heap[index]
0 commit comments