@@ -1472,10 +1472,10 @@ pub trait Iterator {
1472
1472
/// `partition()` returns a pair, all of the elements for which it returned
1473
1473
/// `true`, and all of the elements for which it returned `false`.
1474
1474
///
1475
- /// See also [`is_partitioned()`] and [`partition_mut ()`].
1475
+ /// See also [`is_partitioned()`] and [`partition_in_place ()`].
1476
1476
///
1477
1477
/// [`is_partitioned()`]: #method.is_partitioned
1478
- /// [`partition_mut ()`]: #method.partition_mut
1478
+ /// [`partition_in_place ()`]: #method.partition_in_place
1479
1479
///
1480
1480
/// # Examples
1481
1481
///
@@ -1524,18 +1524,18 @@ pub trait Iterator {
1524
1524
/// # Examples
1525
1525
///
1526
1526
/// ```
1527
- /// #![feature(iter_partition_mut )]
1527
+ /// #![feature(iter_partition_in_place )]
1528
1528
///
1529
1529
/// let mut a = [1, 2, 3, 4, 5, 6, 7];
1530
1530
///
1531
1531
/// // Partition in-place between evens and odds
1532
- /// a.iter_mut().partition_mut (|&n| n % 2 == 0);
1532
+ /// a.iter_mut().partition_in_place (|&n| n % 2 == 0);
1533
1533
///
1534
1534
/// assert!(a[..3].iter().all(|&n| n % 2 == 0)); // evens
1535
1535
/// assert!(a[3..].iter().all(|&n| n % 2 == 1)); // odds
1536
1536
/// ```
1537
- #[ unstable( feature = "iter_partition_mut " , reason = "new API" , issue = "0" ) ]
1538
- fn partition_mut < ' a , T : ' a , P > ( mut self , mut predicate : P )
1537
+ #[ unstable( feature = "iter_partition_in_place " , reason = "new API" , issue = "0" ) ]
1538
+ fn partition_in_place < ' a , T : ' a , P > ( mut self , mut predicate : P )
1539
1539
where
1540
1540
Self : Sized + DoubleEndedIterator < Item = & ' a mut T > ,
1541
1541
P : FnMut ( & T ) -> bool ,
@@ -1553,10 +1553,10 @@ pub trait Iterator {
1553
1553
/// Checks if the elements of this iterator are partitioned according to the given predicate,
1554
1554
/// such that all those that return `true` precede all those that return `false`.
1555
1555
///
1556
- /// See also [`partition()`] and [`partition_mut ()`].
1556
+ /// See also [`partition()`] and [`partition_in_place ()`].
1557
1557
///
1558
1558
/// [`partition()`]: #method.partition
1559
- /// [`partition_mut ()`]: #method.partition_mut
1559
+ /// [`partition_in_place ()`]: #method.partition_in_place
1560
1560
///
1561
1561
/// # Examples
1562
1562
///
0 commit comments