File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -1223,10 +1223,8 @@ impl<'a, T: TotalOrd> ImmutableTotalOrdVector<T> for &'a [T] {
1223
1223
1224
1224
/// Extension methods for vectors containing `Clone` elements.
1225
1225
pub trait ImmutableCloneableVector < T > {
1226
- /**
1227
- * Partitions the vector into those that satisfies the predicate, and
1228
- * those that do not.
1229
- */
1226
+ /// Partitions the vector into two vectors `(A,B)`, where all
1227
+ /// elements of `A` satisfy `f` and all elements of `B` do not.
1230
1228
fn partitioned ( & self , f: |& T | -> bool) -> ( ~[ T ] , ~[ T ] ) ;
1231
1229
1232
1230
/// Create an iterator that yields every possible permutation of the
@@ -1394,9 +1392,10 @@ pub trait OwnedVector<T> {
1394
1392
* Like `filter()`, but in place. Preserves order of `v`. Linear time.
1395
1393
*/
1396
1394
fn retain ( & mut self , f: |t: & T | -> bool ) ;
1395
+
1397
1396
/**
1398
- * Partitions the vector into those that satisfies the predicate, and
1399
- * those that do not.
1397
+ * Partitions the vector into two vectors `(A,B)`, where all
1398
+ * elements of `A` satisfy `f` and all elements of `B` do not.
1400
1399
*/
1401
1400
fn partition ( self , f: |& T | -> bool) -> ( ~[ T ] , ~[ T ] ) ;
1402
1401
You can’t perform that action at this time.
0 commit comments