Skip to content

Commit 487d281

Browse files
committed
Enclose None as None.
1 parent 519a0b1 commit 487d281

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
@@ -250,7 +250,7 @@ pub trait Deque<T> : Mutable {
250250
/// ```
251251
fn front_mut<'a>(&'a mut self) -> Option<&'a mut T>;
252252

253-
/// Provide a reference to the back element, or None if the sequence is
253+
/// Provide a reference to the back element, or `None` if the sequence is
254254
/// empty.
255255
///
256256
/// # Example
@@ -267,7 +267,7 @@ pub trait Deque<T> : Mutable {
267267
/// ```
268268
fn back<'a>(&'a self) -> Option<&'a T>;
269269

270-
/// Provide a mutable reference to the back element, or None if the sequence
270+
/// Provide a mutable reference to the back element, or `None` if the sequence
271271
/// is empty.
272272
///
273273
/// # Example
@@ -314,7 +314,7 @@ pub trait Deque<T> : Mutable {
314314
/// assert_eq!(d.front(), Some(&1i));
315315
fn push_back(&mut self, elt: T);
316316

317-
/// Remove the last element and return it, or None if the sequence is empty.
317+
/// Remove the last element and return it, or `None` if the sequence is empty.
318318
///
319319
/// # Example
320320
///
@@ -330,7 +330,7 @@ pub trait Deque<T> : Mutable {
330330
/// assert_eq!(d.pop_back(), None);
331331
fn pop_back(&mut self) -> Option<T>;
332332

333-
/// Remove the first element and return it, or None if the sequence is empty.
333+
/// Remove the first element and return it, or `None` if the sequence is empty.
334334
///
335335
/// # Example
336336
///

0 commit comments

Comments
 (0)