Skip to content

Commit 71afdc4

Browse files
treemanalexcrichton
authored andcommitted
Enclose None as None.
1 parent 4574b2f commit 71afdc4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcollections/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ pub trait Deque<T> : Mutable {
423423
/// ```
424424
fn front_mut<'a>(&'a mut self) -> Option<&'a mut T>;
425425

426-
/// Provide a reference to the back element, or None if the sequence is
426+
/// Provide a reference to the back element, or `None` if the sequence is
427427
/// empty.
428428
///
429429
/// # Example
@@ -440,7 +440,7 @@ pub trait Deque<T> : Mutable {
440440
/// ```
441441
fn back<'a>(&'a self) -> Option<&'a T>;
442442

443-
/// Provide a mutable reference to the back element, or None if the sequence
443+
/// Provide a mutable reference to the back element, or `None` if the sequence
444444
/// is empty.
445445
///
446446
/// # Example
@@ -487,7 +487,7 @@ pub trait Deque<T> : Mutable {
487487
/// assert_eq!(d.front(), Some(&1i));
488488
fn push_back(&mut self, elt: T);
489489

490-
/// Remove the last element and return it, or None if the sequence is empty.
490+
/// Remove the last element and return it, or `None` if the sequence is empty.
491491
///
492492
/// # Example
493493
///
@@ -503,7 +503,7 @@ pub trait Deque<T> : Mutable {
503503
/// assert_eq!(d.pop_back(), None);
504504
fn pop_back(&mut self) -> Option<T>;
505505

506-
/// Remove the first element and return it, or None if the sequence is empty.
506+
/// Remove the first element and return it, or `None` if the sequence is empty.
507507
///
508508
/// # Example
509509
///

0 commit comments

Comments
 (0)