Skip to content

Commit c4ef161

Browse files
DaseinPhaosManishearth
authored andcommitted
Update exception-safety.md
1 parent c6dd2ea commit c4ef161

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/exception-safety.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ If Rust had `try` and `finally` like in Java, we could do the following:
137137
bubble_up(heap, index):
138138
let elem = heap[index]
139139
try:
140-
while index != 0 && element < heap[parent(index)]:
140+
       while index != 0 && elem < heap[parent(index)]:
141141
heap[index] = heap[parent(index)]
142142
index = parent(index)
143143
finally:

0 commit comments

Comments
 (0)