aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-04-13 13:39:44 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-04-13 13:39:44 -0400
commit63e6ba596ae8e35727289a69b11d5640bfc5e49e (patch)
tree2a6e3022103f42898da7c02640e2dab817b36b88 /types.c
parentcc0763713495a2b5b154d318772fc7f745e96635 (diff)
Change table syntax to {key:value} instead of {key=>value}
Diffstat (limited to 'types.c')
-rw-r--r--types.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/types.c b/types.c
index cd63e574..0a379dd8 100644
--- a/types.c
+++ b/types.c
@@ -25,7 +25,7 @@ CORD type_to_cord(type_t *t) {
}
case TableType: {
auto table = Match(t, TableType);
- return CORD_asprintf("{%r=>%r}", type_to_cord(table->key_type), type_to_cord(table->value_type));
+ return CORD_asprintf("{%r:%r}", type_to_cord(table->key_type), type_to_cord(table->value_type));
}
case ClosureType: {
return type_to_cord(Match(t, ClosureType)->fn);