Skip to content

Commit 1a90ba7

Browse files
committed
Link Some(item)
1 parent 3fb3c0c commit 1a90ba7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcore/iter/mod.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@
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
@@ -53,6 +53,7 @@
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

0 commit comments

Comments
 (0)