libcore: De-mode str

This commit is contained in:
Patrick Walton
2012-09-21 18:36:32 -07:00
parent 49af969e2c
commit d48396c986
19 changed files with 182 additions and 159 deletions

View File

@@ -83,10 +83,10 @@ impl<A: ToStr> ~[A]: ToStr {
let mut acc = ~"[", first = true;
for vec::each(self) |elt| {
if first { first = false; }
else { str::push_str(acc, ~", "); }
str::push_str(acc, elt.to_str());
else { str::push_str(&mut acc, ~", "); }
str::push_str(&mut acc, elt.to_str());
}
str::push_char(acc, ']');
str::push_char(&mut acc, ']');
move acc
}
}