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

@@ -70,7 +70,7 @@ const Str = struct {
a: []Sub,
};
test "setGlobalVarArrayViaSliceEmbeddedInStruct" {
var s = Str { .a = s_array[0...]};
var s = Str { .a = s_array[0..]};
s.a[0].b = 1;
s.a[1].b = 2;