doc: no need for an explicit iter()
This commit is contained in:
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);
|
||||
/// }
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user