Skip to content

Commit

Permalink
core: Add feature gate to rfold example code
Browse files Browse the repository at this point in the history
  • Loading branch information
bluss committed Sep 18, 2017
1 parent 84c90f3 commit 7e81cee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libcore/iter/traits.rs
Expand Up @@ -426,6 +426,7 @@ pub trait DoubleEndedIterator: Iterator {
/// Basic usage:
///
/// ```
/// #![feature(iter_rfold)]
/// let a = [1, 2, 3];
///
/// // the sum of all of the elements of a
Expand All @@ -439,6 +440,7 @@ pub trait DoubleEndedIterator: Iterator {
/// and continuing with each element from the back until the front:
///
/// ```
/// #![feature(iter_rfold)]
/// let numbers = [1, 2, 3, 4, 5];
///
/// let zero = "0".to_string();
Expand Down

0 comments on commit 7e81cee

Please sign in to comment.