@@ -1995,7 +1995,7 @@ pub trait MutableVector<'self, T> {
19951995 * itself) and the second will contain all indices from
19961996 * `mid..len` (excluding the index `len` itself).
19971997 */
1998- fn mut_split ( self , mid : uint ) -> ( & ' self mut [ T ] ,
1998+ fn mut_split_at ( self , mid : uint ) -> ( & ' self mut [ T ] ,
19991999 & ' self mut [ T ] ) ;
20002000
20012001 /// Reverse the order of elements in a vector, in place
@@ -2052,7 +2052,7 @@ impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
20522052 }
20532053
20542054 #[ inline]
2055- fn mut_split ( self , mid : uint ) -> ( & ' self mut [ T ] , & ' self mut [ T ] ) {
2055+ fn mut_split_at ( self , mid : uint ) -> ( & ' self mut [ T ] , & ' self mut [ T ] ) {
20562056 unsafe {
20572057 let len = self . len ( ) ;
20582058 let self2: & ' self mut [ T ] = cast:: transmute_copy ( & self ) ;
@@ -2592,7 +2592,7 @@ impl<'self, T> Iterator<&'self mut [T]> for MutChunkIter<'self, T> {
25922592 } else {
25932593 let sz = cmp:: min ( self . remaining , self . chunk_size ) ;
25942594 let tmp = util:: replace ( & mut self . v , & mut [ ] ) ;
2595- let ( head, tail) = tmp. mut_split ( sz) ;
2595+ let ( head, tail) = tmp. mut_split_at ( sz) ;
25962596 self . v = tail;
25972597 self . remaining -= sz;
25982598 Some ( head)
@@ -2620,7 +2620,7 @@ impl<'self, T> DoubleEndedIterator<&'self mut [T]> for MutChunkIter<'self, T> {
26202620 let remainder = self . remaining % self . chunk_size ;
26212621 let sz = if remainder != 0 { remainder } else { self . chunk_size } ;
26222622 let tmp = util:: replace ( & mut self . v , & mut [ ] ) ;
2623- let ( head, tail) = tmp. mut_split ( self . remaining - sz) ;
2623+ let ( head, tail) = tmp. mut_split_at ( self . remaining - sz) ;
26242624 self . v = head;
26252625 self . remaining -= sz;
26262626 Some ( tail)
@@ -3898,10 +3898,10 @@ mod tests {
38983898 }
38993899
39003900 #[ test]
3901- fn test_mut_split ( ) {
3901+ fn test_mut_split_at ( ) {
39023902 let mut values = [ 1u8 , 2 , 3 , 4 , 5 ] ;
39033903 {
3904- let ( left, right) = values. mut_split ( 2 ) ;
3904+ let ( left, right) = values. mut_split_at ( 2 ) ;
39053905 assert_eq ! ( left. slice( 0 , left. len( ) ) , [ 1 , 2 ] ) ;
39063906 for p in left. mut_iter ( ) {
39073907 * p += 1 ;
0 commit comments