Rollup merge of #32607 - tshepang:we-gots-intoiterator, r=apasel422
doc: no need for an explicit iter()
This commit is contained in:
commit
709be98804
@ -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