File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3939//! ```
4040//!
4141//! An iterator has a method, [`next`], which when called, returns an
42- //! [`Option`]`<Item>`. [`next`] will return `Some(Item)` as long as there
42+ //! [`Option`]`<Item>`. [`next`] will return [ `Some(Item)`] as long as there
4343//! are elements, and once they've all been exhausted, will return `None` to
4444//! indicate that iteration is finished. Individual iterators may choose to
4545//! resume iteration, and so calling [`next`] again may or may not eventually
46- //! start returning `Some(Item)` again at some point (for example, see [`TryIter`]).
46+ //! start returning [ `Some(Item)`] again at some point (for example, see [`TryIter`]).
4747//!
4848//! [`Iterator`]'s full definition includes a number of other methods as well,
4949//! but they are default methods, built on top of [`next`], and so you get
5353//! more complex forms of processing. See the [Adapters](#adapters) section
5454//! below for more details.
5555//!
56+ //! [`Some(Item)`]: Some
5657//! [`Iterator`]: trait.Iterator.html
5758//! [`next`]: trait.Iterator.html#tymethod.next
5859//! [`TryIter`]: ../../std/sync/mpsc/struct.TryIter.html
You can’t perform that action at this time.
0 commit comments