aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-21 18:01:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-21 18:01:19 -0400
commit68bedd3c23757a8576e77f38e38ddcf9ecd26d19 (patch)
tree86ce1610143efc43453f50d3413925797601c48a /src/stdlib
parent0815de981c683cac7dbac082ee14c11894089f31 (diff)
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'src/stdlib')
-rw-r--r--src/stdlib/tables.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stdlib/tables.c b/src/stdlib/tables.c
index 6e37751e..bda55375 100644
--- a/src/stdlib/tables.c
+++ b/src/stdlib/tables.c
@@ -534,7 +534,7 @@ Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *type) {
__typeof(type->TableInfo) table = type->TableInfo;
if (!t) {
- return Text$concat(Text("{"), generic_as_text(NULL, false, table.key), Text("="),
+ return Text$concat(Text("{"), generic_as_text(NULL, false, table.key), Text(":"),
generic_as_text(NULL, false, table.value), Text("}"));
}
@@ -545,7 +545,7 @@ Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *type) {
void *entry = GET_ENTRY(*t, i);
text = Text$concat(text, generic_as_text(entry, colorize, table.key));
if (table.value != &Void$info)
- text = Text$concat(text, Text("="), generic_as_text(entry + val_off, colorize, table.value));
+ text = Text$concat(text, Text(": "), generic_as_text(entry + val_off, colorize, table.value));
}
if (t->fallback) {