From fd78ae860f64c0e5dc6448add8457d4c77588ee5 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Tue, 29 Mar 2016 00:55:04 +0200 Subject: [PATCH] doc: no need for an explicit iter() --- src/libcollections/binary_heap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcollections/binary_heap.rs b/src/libcollections/binary_heap.rs index ba317334cfa..97b76d94476 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); /// } ///