summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2013-02-19 18:30:24 -0500
committerOri Bernstein <orib@google.com>2013-02-19 18:30:24 -0500
commit543887f46d1d7796bd8f1e6d329401197b19ec56 (patch)
tree7b01d29732a1d4875e5949a444c4c8e8ab06afeb
parent7e94001f96f9c1f05af4be980ef8c25cea6b1342 (diff)
downloadmc-543887f46d1d7796bd8f1e6d329401197b19ec56.tar.gz
Slices have been using ':' for the range since forever.
This fixes the syntax so that works.
-rw-r--r--parse/type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse/type.c b/parse/type.c
index 92ee360..392161c 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -414,7 +414,7 @@ static int tybfmt(char *buf, size_t len, Type *t)
break;
case Tyslice:
p += tybfmt(p, end - p, t->sub[0]);
- p += snprintf(p, end - p, "[,]");
+ p += snprintf(p, end - p, "[:]");
break;
case Tyarray:
p += tybfmt(p, end - p, t->sub[0]);