summaryrefslogtreecommitdiff
path: root/val.c
diff options
context:
space:
mode:
Diffstat (limited to 'val.c')
-rw-r--r--val.c6
1 files changed, 3 insertions, 3 deletions
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("<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("]");
}