diff options
| author | Luxko <liarluxlux@gmail.com> | 2017-02-23 01:44:27 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-23 01:44:27 -0600 |
| commit | 84ca464f9c731b07a68cb264ecd37c9aacc2e475 (patch) | |
| tree | c3128a45188b986ffb191c6f7a7d567893a4ea37 | |
| parent | bfe45974a18af63191d40a6ac5beb0cf2ab9c9f7 (diff) | |
| download | rust-84ca464f9c731b07a68cb264ecd37c9aacc2e475.tar.gz rust-84ca464f9c731b07a68cb264ecd37c9aacc2e475.zip | |
Update exception-safety.md
Fix variable name typo
| -rw-r--r-- | src/doc/nomicon/src/exception-safety.md | 2 |
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 |
