File tree 1 file changed +5
-2
lines changed
library/std/src/collections
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 172
172
//!
173
173
//! ## Iterators
174
174
//!
175
- //! Iterators are a powerful and robust mechanism used throughout Rust's
175
+ //! [Iterators][crate::iter]
176
+ //! are a powerful and robust mechanism used throughout Rust's
176
177
//! standard libraries. Iterators provide a sequence of values in a generic,
177
178
//! safe, efficient and convenient way. The contents of an iterator are usually
178
179
//! *lazily* evaluated, so that only the values that are actually needed are
252
253
//!
253
254
//! Several other collection methods also return iterators to yield a sequence
254
255
//! of results but avoid allocating an entire collection to store the result in.
255
- //! This provides maximum flexibility as `collect` or `extend` can be called to
256
+ //! This provides maximum flexibility as
257
+ //! [`collect`][crate::iter::Iterator::collect] or
258
+ //! [`extend`][crate::iter::Extend::extend] can be called to
256
259
//! "pipe" the sequence into any collection if desired. Otherwise, the sequence
257
260
//! can be looped over with a `for` loop. The iterator can also be discarded
258
261
//! after partial use, preventing the computation of the unused items.
You can’t perform that action at this time.
0 commit comments