diff options
Diffstat (limited to 'val.c')
-rw-r--r-- | val.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -113,10 +113,10 @@ static void print_val_h(Val v, int depth) { if (depth <= 0) printf("<arr>"); else { - printf("[ "); - for (int i = 0; i < a->len; i++) { + printf("["); + for (int i = 0; i < a->len ; i++) { print_val_h(a->d[i], depth-1); - printf(" "); + if (i < a->len - 1) printf(" "); } printf("]"); } |