diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:01:19 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:01:19 -0400 |
| commit | 68bedd3c23757a8576e77f38e38ddcf9ecd26d19 (patch) | |
| tree | 86ce1610143efc43453f50d3413925797601c48a /src/stdlib/tables.c | |
| parent | 0815de981c683cac7dbac082ee14c11894089f31 (diff) | |
Use colons instead of '=' for tables (e.g. {1: 2})
Diffstat (limited to 'src/stdlib/tables.c')
| -rw-r--r-- | src/stdlib/tables.c | 4 |
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) { |
