diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-07-14 11:35:22 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-07-17 13:00:50 +0000 |
| commit | 1a90ba73fb950961385b8e011b7472c681019647 (patch) | |
| tree | 7fae1af86091b3cab4e3752ab6f9dcf71087f25c | |
| parent | 3fb3c0c0bdbe05541c824c84f4755e1eaf4ed08b (diff) | |
| download | rust-1a90ba73fb950961385b8e011b7472c681019647.tar.gz rust-1a90ba73fb950961385b8e011b7472c681019647.zip | |
Link Some(item)
| -rw-r--r-- | src/libcore/iter/mod.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libcore/iter/mod.rs b/src/libcore/iter/mod.rs index d10f074259c..3941a4c9700 100644 --- a/src/libcore/iter/mod.rs +++ b/src/libcore/iter/mod.rs @@ -39,11 +39,11 @@ //! ``` //! //! An iterator has a method, [`next`], which when called, returns an -//! [`Option`]`<Item>`. [`next`] will return `Some(Item)` as long as there +//! [`Option`]`<Item>`. [`next`] will return [`Some(Item)`] as long as there //! are elements, and once they've all been exhausted, will return `None` to //! indicate that iteration is finished. Individual iterators may choose to //! resume iteration, and so calling [`next`] again may or may not eventually -//! start returning `Some(Item)` again at some point (for example, see [`TryIter`]). +//! start returning [`Some(Item)`] again at some point (for example, see [`TryIter`]). //! //! [`Iterator`]'s full definition includes a number of other methods as well, //! but they are default methods, built on top of [`next`], and so you get @@ -53,6 +53,7 @@ //! more complex forms of processing. See the [Adapters](#adapters) section //! below for more details. //! +//! [`Some(Item)`]: Some //! [`Iterator`]: trait.Iterator.html //! [`next`]: trait.Iterator.html#tymethod.next //! [`TryIter`]: ../../std/sync/mpsc/struct.TryIter.html |
