Update exception-safety.md

Fix variable name typo
This commit is contained in:
Luxko 2017-02-23 01:44:27 -06:00 committed by GitHub
parent bfe45974a1
commit 84ca464f9c

View File

@ -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