diff options
| author | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2017-09-18 23:09:00 +0200 |
|---|---|---|
| committer | Ulrik Sverdrup <bluss@users.noreply.github.com> | 2017-09-18 23:09:00 +0200 |
| commit | 7e81cee934e37409591ce687d290ba6ac938c894 (patch) | |
| tree | 55db8b2899a3238a3aa68ddbb8877cad3998d814 | |
| parent | 84c90f30226f4cc7998ed5d74aea872252c89be9 (diff) | |
| download | rust-7e81cee934e37409591ce687d290ba6ac938c894.tar.gz rust-7e81cee934e37409591ce687d290ba6ac938c894.zip | |
core: Add feature gate to rfold example code
| -rw-r--r-- | src/libcore/iter/traits.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/iter/traits.rs b/src/libcore/iter/traits.rs index 85df8a669d1..bf74ed826bf 100644 --- a/src/libcore/iter/traits.rs +++ b/src/libcore/iter/traits.rs @@ -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 @@ -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(); |
