about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/dvec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/dvec.rs b/src/libcore/dvec.rs
index d360eab3c8a..3ce5a7153fd 100644
--- a/src/libcore/dvec.rs
+++ b/src/libcore/dvec.rs
@@ -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)))
         }