about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-04-16 11:53:17 -0400
committerCorey Farwell <coreyf@rwell.org>2015-04-16 11:53:17 -0400
commit1c6ccd96ac4c03411283749687556f4ccbf3bce5 (patch)
treedf290bb8ed36ea3bfa049017fea07d332d5a3a4f
parent5576b0558c7f46faa5331be72113238c677979b6 (diff)
downloadrust-1c6ccd96ac4c03411283749687556f4ccbf3bce5.tar.gz
rust-1c6ccd96ac4c03411283749687556f4ccbf3bce5.zip
Indicate None is code-like in doc comments
-rw-r--r--src/libcore/iter.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libcore/iter.rs b/src/libcore/iter.rs
index e44b0d1147c..16ee3889880 100644
--- a/src/libcore/iter.rs
+++ b/src/libcore/iter.rs
@@ -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
     ///
@@ -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
@@ -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
     ///
@@ -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.
     ///