Skip to content

Commit 729948f

Browse files
authored
Update exception-safety.md
1 parent 84ca464 commit 729948f

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