Update exception-safety.md
Fix variable name typo
This commit is contained in:
parent
bfe45974a1
commit
84ca464f9c
1 changed files with 1 additions and 1 deletions
|
|
@ -93,7 +93,7 @@ uselessly. We would rather have the following:
|
|||
```text
|
||||
bubble_up(heap, index):
|
||||
let elem = heap[index]
|
||||
while index != 0 && element < heap[parent(index)]:
|
||||
while index != 0 && elem < heap[parent(index)]:
|
||||
heap[index] = heap[parent(index)]
|
||||
index = parent(index)
|
||||
heap[index] = elem
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue