Skip to content

Commit

Permalink
Indicate None is code-like in doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
frewsxcv authored and steveklabnik committed Apr 17, 2015
1 parent 35a4100 commit 3908bae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libcore/iter.rs
Expand Up @@ -179,8 +179,8 @@ pub trait Iterator {

/// Creates an iterator that iterates over both this and the specified
/// iterators simultaneously, yielding the two elements as pairs. When
/// either iterator returns None, all further invocations of next() will
/// return None.
/// either iterator returns `None`, all further invocations of next() will
/// return `None`.
///
/// # Examples
///
Expand Down Expand Up @@ -254,7 +254,7 @@ pub trait Iterator {
}

/// Creates an iterator that both filters and maps elements.
/// If the specified function returns None, the element is skipped.
/// If the specified function returns `None`, the element is skipped.
/// Otherwise the option is unwrapped and the new value is yielded.
///
/// # Examples
Expand Down Expand Up @@ -403,7 +403,7 @@ pub trait Iterator {
/// Creates a new iterator that behaves in a similar fashion to fold.
/// There is a state which is passed between each iteration and can be
/// mutated as necessary. The yielded values from the closure are yielded
/// from the Scan instance when not None.
/// from the Scan instance when not `None`.
///
/// # Examples
///
Expand Down Expand Up @@ -701,7 +701,7 @@ pub trait Iterator {

/// Returns the index of the last element satisfying the specified predicate
///
/// If no element matches, None is returned.
/// If no element matches, `None` is returned.
///
/// Does not consume the iterator *before* the first found element.
///
Expand Down

0 comments on commit 3908bae

Please sign in to comment.