Skip to content

Commit 1c6ccd9

Browse files
committed
Indicate None is code-like in doc comments
1 parent 5576b05 commit 1c6ccd9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/libcore/iter.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ pub trait Iterator {
179179

180180
/// Creates an iterator that iterates over both this and the specified
181181
/// iterators simultaneously, yielding the two elements as pairs. When
182-
/// either iterator returns None, all further invocations of next() will
183-
/// return None.
182+
/// either iterator returns `None`, all further invocations of next() will
183+
/// return `None`.
184184
///
185185
/// # Examples
186186
///
@@ -254,7 +254,7 @@ pub trait Iterator {
254254
}
255255

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

702702
/// Returns the index of the last element satisfying the specified predicate
703703
///
704-
/// If no element matches, None is returned.
704+
/// If no element matches, `None` is returned.
705705
///
706706
/// Does not consume the iterator *before* the first found element.
707707
///

0 commit comments

Comments
 (0)