Rename variables that clash with keywords

This commit is contained in:
Brian Anderson
2012-09-09 16:53:19 -07:00
parent 9007afab0a
commit f53c2948aa
7 changed files with 43 additions and 43 deletions

View File

@@ -1029,15 +1029,15 @@ pure fn rposition_between<T>(v: &[T], start: uint, end: uint,
* Convert a vector of pairs into a pair of vectors, by reference. As unzip().
*/
pure fn unzip_slice<T: Copy, U: Copy>(v: &[(T, U)]) -> (~[T], ~[U]) {
let mut as = ~[], bs = ~[];
let mut as_ = ~[], bs = ~[];
for each(v) |p| {
let (a, b) = p;
unchecked {
vec::push(as, a);
vec::push(as_, a);
vec::push(bs, b);
}
}
return (as, bs);
return (as_, bs);
}
/**