From 1f257ac91ef3813c563203eacb5320b210fc1aa7 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sat, 3 Aug 2024 17:49:54 +0100 Subject: change array representation --- val.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'val.c') diff --git a/val.c b/val.c index 6562daa..685c504 100644 --- a/val.c +++ b/val.c @@ -113,10 +113,10 @@ static void print_val_h(Val v, int depth) { if (depth <= 0) printf(""); 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("]"); } -- cgit v1.2.3