about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-03-30 10:16:55 -0700
committerSteve Klabnik <steve@steveklabnik.com>2016-03-30 10:16:55 -0700
commit709be98804f5496f2920ed87a5a88e73172151bb (patch)
treef2017a341cb2c47dd03c6d722082be7c3e208ce8
parent1978a9951b4a8af637de518a79b3d860f060fcaf (diff)
parentfd78ae860f64c0e5dc6448add8457d4c77588ee5 (diff)
downloadrust-709be98804f5496f2920ed87a5a88e73172151bb.tar.gz
rust-709be98804f5496f2920ed87a5a88e73172151bb.zip
Rollup merge of #32607 - tshepang:we-gots-intoiterator, r=apasel422
doc: no need for an explicit iter()
-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 188fd3f9d63..c9dd1efb374 100644
--- a/src/libcollections/binary_heap.rs
+++ b/src/libcollections/binary_heap.rs
@@ -194,7 +194,7 @@ use vec::{self, Vec};
 ///
 /// // We can iterate over the items in the heap, although they are returned in
 /// // a random order.
-/// for x in heap.iter() {
+/// for x in &heap {
 ///     println!("{}", x);
 /// }
 ///