Skip to content

Commit fdc6062

Browse files
committed
Demode dvec
1 parent e48429a commit fdc6062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/dvec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl<A> DVec<A> {
130130
* and return a new vector to replace it with.
131131
*/
132132
#[inline(always)]
133-
fn swap_mut(f: &fn(-v: ~[mut A]) -> ~[mut A]) {
133+
fn swap_mut(f: &fn(+v: ~[mut A]) -> ~[mut A]) {
134134
do self.swap |v| {
135135
vec::from_mut(f(vec::to_mut(move v)))
136136
}

0 commit comments

Comments
 (0)