mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 20:45:45 +03:00
Demode dvec
This commit is contained in:
+1
-1
@@ -130,7 +130,7 @@ fn swap(f: &fn(+v: ~[A]) -> ~[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)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user