about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJonas Hietala <tradet.h@gmail.com>2014-07-20 14:47:13 +0200
committerAlex Crichton <alex@alexcrichton.com>2014-07-21 09:54:31 -0700
commit71afdc4323773b1351e7ddccecdfeec2b65e932f (patch)
treee2369c08a302e5db841accc82fccc1f4b0b45622 /src
parent4574b2fbaa866fbe73224f57981151aab1f1f15b (diff)
downloadrust-71afdc4323773b1351e7ddccecdfeec2b65e932f.tar.gz
rust-71afdc4323773b1351e7ddccecdfeec2b65e932f.zip
Enclose None as `None`.
Diffstat (limited to 'src')
-rw-r--r--src/libcollections/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libcollections/lib.rs b/src/libcollections/lib.rs
index abcd677bba6..773650d4d3a 100644
--- a/src/libcollections/lib.rs
+++ b/src/libcollections/lib.rs
@@ -423,7 +423,7 @@ pub trait Deque<T> : Mutable {
     /// ```
     fn front_mut<'a>(&'a mut self) -> Option<&'a mut T>;
 
-    /// Provide a reference to the back element, or None if the sequence is
+    /// Provide a reference to the back element, or `None` if the sequence is
     /// empty.
     ///
     /// # Example
@@ -440,7 +440,7 @@ pub trait Deque<T> : Mutable {
     /// ```
     fn back<'a>(&'a self) -> Option<&'a T>;
 
-    /// Provide a mutable reference to the back element, or None if the sequence
+    /// Provide a mutable reference to the back element, or `None` if the sequence
     /// is empty.
     ///
     /// # Example
@@ -487,7 +487,7 @@ pub trait Deque<T> : Mutable {
     /// assert_eq!(d.front(), Some(&1i));
     fn push_back(&mut self, elt: T);
 
-    /// Remove the last element and return it, or None if the sequence is empty.
+    /// Remove the last element and return it, or `None` if the sequence is empty.
     ///
     /// # Example
     ///
@@ -503,7 +503,7 @@ pub trait Deque<T> : Mutable {
     /// assert_eq!(d.pop_back(), None);
     fn pop_back(&mut self) -> Option<T>;
 
-    /// Remove the first element and return it, or None if the sequence is empty.
+    /// Remove the first element and return it, or `None` if the sequence is empty.
     ///
     /// # Example
     ///