@@ -1446,7 +1446,6 @@ pub trait Iterator {
1446
1446
/// Basic usage:
1447
1447
///
1448
1448
/// ```
1449
- /// #![feature(iterator_try_fold)]
1450
1449
/// let a = [1, 2, 3];
1451
1450
///
1452
1451
/// // the checked sum of all of the elements of the array
@@ -1458,7 +1457,6 @@ pub trait Iterator {
1458
1457
/// Short-circuiting:
1459
1458
///
1460
1459
/// ```
1461
- /// #![feature(iterator_try_fold)]
1462
1460
/// let a = [10, 20, 30, 100, 40, 50];
1463
1461
/// let mut it = a.iter();
1464
1462
///
@@ -1472,7 +1470,7 @@ pub trait Iterator {
1472
1470
/// assert_eq!(it.next(), Some(&40));
1473
1471
/// ```
1474
1472
#[ inline]
1475
- #[ unstable ( feature = "iterator_try_fold" , issue = "45594 " ) ]
1473
+ #[ stable ( feature = "iterator_try_fold" , since = "1.27.0 " ) ]
1476
1474
fn try_fold < B , F , R > ( & mut self , init : B , mut f : F ) -> R where
1477
1475
Self : Sized , F : FnMut ( B , Self :: Item ) -> R , R : Try < Ok =B >
1478
1476
{
@@ -1495,7 +1493,6 @@ pub trait Iterator {
1495
1493
/// # Examples
1496
1494
///
1497
1495
/// ```
1498
- /// #![feature(iterator_try_fold)]
1499
1496
/// use std::fs::rename;
1500
1497
/// use std::io::{stdout, Write};
1501
1498
/// use std::path::Path;
@@ -1512,7 +1509,7 @@ pub trait Iterator {
1512
1509
/// assert_eq!(it.next(), Some("stale_bread.json"));
1513
1510
/// ```
1514
1511
#[ inline]
1515
- #[ unstable ( feature = "iterator_try_fold" , issue = "45594 " ) ]
1512
+ #[ stable ( feature = "iterator_try_fold" , since = "1.27.0 " ) ]
1516
1513
fn try_for_each < F , R > ( & mut self , mut f : F ) -> R where
1517
1514
Self : Sized , F : FnMut ( Self :: Item ) -> R , R : Try < Ok =( ) >
1518
1515
{
0 commit comments