Skip to content

Commit 709be98

Browse files
committed
Rollup merge of rust-lang#32607 - tshepang:we-gots-intoiterator, r=apasel422
doc: no need for an explicit iter()
2 parents 1978a99 + fd78ae8 commit 709be98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/binary_heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ use vec::{self, Vec};
194194
///
195195
/// // We can iterate over the items in the heap, although they are returned in
196196
/// // a random order.
197-
/// for x in heap.iter() {
197+
/// for x in &heap {
198198
/// println!("{}", x);
199199
/// }
200200
///

0 commit comments

Comments
 (0)