aboutsummaryrefslogtreecommitdiff
path: root/src/stdlib/tables.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-09-06 15:11:26 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-09-06 15:11:26 -0400
commitfb216e955f04a803f11953be27e76bd4d2c9e76d (patch)
treede2c471c5416ec2ee490bdb33f5e3e202d94675a /src/stdlib/tables.c
parent73246764f88f6f652316ee0c138a990d836698a7 (diff)
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'src/stdlib/tables.c')
-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 974e3542..65b09f60 100644
--- a/src/stdlib/tables.c
+++ b/src/stdlib/tables.c
@@ -535,7 +535,7 @@ Text_t Table$as_text(const void *obj, bool colorize, const TypeInfo_t *type) {
if (!t) {
if (table.value != &Void$info)
- 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("}"));
else return Text$concat(Text("|"), generic_as_text(NULL, false, table.key), Text("|"));
}
@@ -547,7 +547,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) {