Skip to content

Commit

Permalink
Fix doctest of ExactSizeIterator::is_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Jul 18, 2016
1 parent f2e73d9 commit 7b2a03f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libcore/iter/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,9 @@ pub trait ExactSizeIterator: Iterator {
/// Basic usage:
///
/// ```
/// let mut one_element = [0].iter();
/// #![feature(exact_size_is_empty)]
///
/// let mut one_element = 0..1;
/// assert!(!one_element.is_empty());
///
/// assert_eq!(one_element.next(), Some(0));
Expand Down

0 comments on commit 7b2a03f

Please sign in to comment.