Fix vec::mut_slice

This commit is contained in:
june0cho 2013-05-29 14:56:21 +09:00
parent e946b4fa3f
commit 14d59af0a3
1 changed files with 3 additions and 3 deletions

View File

@ -2347,7 +2347,7 @@ impl<T:Eq> OwnedEqVector<T> for ~[T] {
}
pub trait MutableVector<'self, T> {
fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T];
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T];
unsafe fn unsafe_mut_ref(&self, index: uint) -> *mut T;
unsafe fn unsafe_set(&self, index: uint, val: T);
@ -2355,8 +2355,8 @@ pub trait MutableVector<'self, T> {
impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
#[inline]
fn mut_slice(&mut self, start: uint, end: uint) -> &'self mut [T] {
mut_slice(*self, start, end)
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
mut_slice(self, start, end)
}
#[inline(always)]