Skip to content

Commit 7e81cee

Browse files
committed
core: Add feature gate to rfold example code
1 parent 84c90f3 commit 7e81cee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/libcore/iter/traits.rs

+2
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,7 @@ pub trait DoubleEndedIterator: Iterator {
426426
/// Basic usage:
427427
///
428428
/// ```
429+
/// #![feature(iter_rfold)]
429430
/// let a = [1, 2, 3];
430431
///
431432
/// // the sum of all of the elements of a
@@ -439,6 +440,7 @@ pub trait DoubleEndedIterator: Iterator {
439440
/// and continuing with each element from the back until the front:
440441
///
441442
/// ```
443+
/// #![feature(iter_rfold)]
442444
/// let numbers = [1, 2, 3, 4, 5];
443445
///
444446
/// let zero = "0".to_string();

0 commit comments

Comments
 (0)