summaryrefslogtreecommitdiff
path: root/test/slice.myr
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-08-14 18:13:00 -0400
committerOri Bernstein <orib@google.com>2012-08-14 18:13:00 -0400
commit482ea3b5682f4a34c30ddc3546424ba1f8429bf7 (patch)
treec3f31f0baf59c85ad054c11cf6fdc31fbba5900f /test/slice.myr
parente24bcc37239283534785e2e2a31393f20ae6c9b7 (diff)
downloadmc-482ea3b5682f4a34c30ddc3546424ba1f8429bf7.tar.gz
Use ':' instead of ',' in slice ranges.
It's clearer notation, IMO.
Diffstat (limited to 'test/slice.myr')
-rw-r--r--test/slice.myr2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/slice.myr b/test/slice.myr
index 9bd2d10..1f492a9 100644
--- a/test/slice.myr
+++ b/test/slice.myr
@@ -2,7 +2,7 @@ const main = {
var a : int[3]
var s
- s = a[,]
+ s = a[:]
s[0] = 3
s[1] = 4
s[2] = s[0] + s[1] + s.len