about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLuxko <liarluxlux@gmail.com>2017-02-23 01:44:27 -0600
committerGitHub <noreply@github.com>2017-02-23 01:44:27 -0600
commit84ca464f9c731b07a68cb264ecd37c9aacc2e475 (patch)
treec3128a45188b986ffb191c6f7a7d567893a4ea37
parentbfe45974a18af63191d40a6ac5beb0cf2ab9c9f7 (diff)
downloadrust-84ca464f9c731b07a68cb264ecd37c9aacc2e475.tar.gz
rust-84ca464f9c731b07a68cb264ecd37c9aacc2e475.zip
Update exception-safety.md
Fix variable name typo
-rw-r--r--src/doc/nomicon/src/exception-safety.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/nomicon/src/exception-safety.md b/src/doc/nomicon/src/exception-safety.md
index 80e72cd5e36..0fb98a61768 100644
--- a/src/doc/nomicon/src/exception-safety.md
+++ b/src/doc/nomicon/src/exception-safety.md
@@ -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