about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorjotomicron <jotomicron@gmail.com>2015-08-18 15:58:05 +0100
committerjotomicron <jotomicron@gmail.com>2015-08-18 15:58:05 +0100
commit6f6ea4687e9d596d7136dc591dee312e51fa0ad7 (patch)
tree43acd4651accda849363d5965d938cb78f92587e /src
parent58e602b03ff8dc6caf3f64178430d1869d230fec (diff)
downloadrust-6f6ea4687e9d596d7136dc591dee312e51fa0ad7.tar.gz
rust-6f6ea4687e9d596d7136dc591dee312e51fa0ad7.zip
Fixed example in documentation
Added the cost of the edge 3 -> 4 on the example in the module documentation
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/binary_heap.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/binary_heap.rs b/src/libcollections/binary_heap.rs
index b817ed6a6d0..bedeab67420 100644
--- a/src/libcollections/binary_heap.rs
+++ b/src/libcollections/binary_heap.rs
@@ -112,7 +112,7 @@
 //!     //                  7
 //!     //          +-----------------+
 //!     //          |                 |
-//!     //          v   1        2    |
+//!     //          v   1        2    |  2
 //!     //          0 -----> 1 -----> 3 ---> 4
 //!     //          |        ^        ^      ^
 //!     //          |        | 1      |      |