Update exception-safety.md

Fix variable name typo
pull/10/head
Luxko 8 years ago committed by Manish Goregaokar
parent 7f2e5abd96
commit c6dd2ea600

@ -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…
Cancel
Save