change slicing syntax from ... to ..

See #359
This commit is contained in:
Andrew Kelley
2017-05-19 10:39:59 -04:00
parent b483db4868
commit 051ee8e626
40 changed files with 164 additions and 158 deletions

View File

@@ -27,11 +27,11 @@ pub fn ArrayList(comptime T: type) -> type{
}
pub fn toSlice(l: &Self) -> []T {
return l.items[0...l.len];
return l.items[0..l.len];
}
pub fn toSliceConst(l: &const Self) -> []const T {
return l.items[0...l.len];
return l.items[0..l.len];
}
pub fn append(l: &Self, item: &const T) -> %void {