]> git.lizzy.rs Git - rust.git/commitdiff
Update exception-safety.md
authorLuxko <liarluxlux@gmail.com>
Thu, 23 Feb 2017 07:50:16 +0000 (01:50 -0600)
committerGitHub <noreply@github.com>
Thu, 23 Feb 2017 07:50:16 +0000 (01:50 -0600)
src/doc/nomicon/src/exception-safety.md

index 0fb98a617688e7a97c2b603570bcf00cebfcf4ef..a3cbc6abd69cc98023f139e408d15aab03007dc8 100644 (file)
@@ -137,7 +137,7 @@ If Rust had `try` and `finally` like in Java, we could do the following:
 bubble_up(heap, index):
     let elem = heap[index]
     try:
       while index != 0 && element < heap[parent(index)]:
       while index != 0 && elem < heap[parent(index)]:
             heap[index] = heap[parent(index)]
             index = parent(index)
     finally: