Demode dvec

This commit is contained in:
Tim Chevalier 2012-09-28 15:44:01 -07:00
parent e48429abae
commit fdc6062136
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ impl<A> DVec<A> {
* and return a new vector to replace it with.
*/
#[inline(always)]
fn swap_mut(f: &fn(-v: ~[mut A]) -> ~[mut A]) {
fn swap_mut(f: &fn(+v: ~[mut A]) -> ~[mut A]) {
do self.swap |v| {
vec::from_mut(f(vec::to_mut(move v)))
}