@@ -733,7 +733,7 @@ macro_rules! iterator {
733733}
734734
735735macro_rules! make_slice {
736- ( $t: ty - > $result: ty: $start: expr, $end: expr) => { {
736+ ( $t: ty = > $result: ty: $start: expr, $end: expr) => { {
737737 let diff = $end as uint - $start as uint;
738738 let len = if mem:: size_of:: <T >( ) == 0 {
739739 diff
@@ -797,7 +797,7 @@ impl<'a, T> Iter<'a, T> {
797797 /// iterator can continue to be used while this exists.
798798 #[ experimental]
799799 pub fn as_slice ( & self ) -> & ' a [ T ] {
800- make_slice ! ( T - > & ' a [ T ] : self . ptr, self . end)
800+ make_slice ! ( T = > & ' a [ T ] : self . ptr, self . end)
801801 }
802802}
803803
@@ -876,7 +876,7 @@ impl<'a, T> ops::Index<ops::FullRange> for IterMut<'a, T> {
876876 type Output = [ T ] ;
877877 #[ inline]
878878 fn index ( & self , _index : & ops:: FullRange ) -> & [ T ] {
879- make_slice ! ( T - > & [ T ] : self . ptr, self . end)
879+ make_slice ! ( T = > & [ T ] : self . ptr, self . end)
880880 }
881881}
882882
@@ -909,7 +909,7 @@ impl<'a, T> ops::IndexMut<ops::FullRange> for IterMut<'a, T> {
909909 type Output = [ T ] ;
910910 #[ inline]
911911 fn index_mut ( & mut self , _index : & ops:: FullRange ) -> & mut [ T ] {
912- make_slice ! ( T - > & mut [ T ] : self . ptr, self . end)
912+ make_slice ! ( T = > & mut [ T ] : self . ptr, self . end)
913913 }
914914}
915915
@@ -923,7 +923,7 @@ impl<'a, T> IterMut<'a, T> {
923923 /// restricted lifetimes that do not consume the iterator.
924924 #[ experimental]
925925 pub fn into_slice ( self ) -> & ' a mut [ T ] {
926- make_slice ! ( T - > & ' a mut [ T ] : self . ptr, self . end)
926+ make_slice ! ( T = > & ' a mut [ T ] : self . ptr, self . end)
927927 }
928928}
929929
0 commit comments