shithub: mc

Download patch

ref: 543887f46d1d7796bd8f1e6d329401197b19ec56
parent: 7e94001f96f9c1f05af4be980ef8c25cea6b1342
author: Ori Bernstein <[email protected]>
date: Tue Feb 19 13:30:24 EST 2013

Slices have been using ':' for the range since forever.

    This fixes the syntax so that works.

--- a/parse/type.c
+++ b/parse/type.c
@@ -414,7 +414,7 @@
             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]);