doc: no need for an explicit iter()

This commit is contained in:
Tshepang Lekhonkhobe 2016-03-29 00:55:04 +02:00
parent 235d77457d
commit fd78ae860f

@ -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);
/// }
///