add mutability annotations to libcore

This commit is contained in:
Niko Matsakis
2012-03-06 20:48:40 -08:00
parent 674587cfe5
commit 713006c7b6
22 changed files with 204 additions and 198 deletions

View File

@@ -37,7 +37,7 @@ impl <A: to_str copy, B: to_str copy, C: to_str copy> of to_str for (A, B, C){
impl <A: to_str> of to_str for [A] {
fn to_str() -> str {
let acc = "[", first = true;
let mut acc = "[", first = true;
for elt in self {
if first { first = false; }
else { acc += ", "; }