Skip to content

Commit 84ca464

Browse files
authored
Update exception-safety.md
Fix variable name typo
1 parent bfe4597 commit 84ca464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/nomicon/src/exception-safety.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ uselessly. We would rather have the following:
9393
```text
9494
bubble_up(heap, index):
9595
let elem = heap[index]
96-
while index != 0 && element < heap[parent(index)]:
96+
while index != 0 && elem < heap[parent(index)]:
9797
heap[index] = heap[parent(index)]
9898
index = parent(index)
9999
heap[index] = elem

0 commit comments

Comments
 (0)