From ea3886d0cb7fe20c1f4447b485143629433223fc Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 30 Jan 2023 11:35:42 +0100 Subject: [PATCH] Remove comma from list printing: use same syntax as language. --- aocla.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aocla.c b/aocla.c index 1d5ebbf..22a595d 100644 --- a/aocla.c +++ b/aocla.c @@ -434,7 +434,7 @@ void printobj(obj *obj, int flags) { if (repr) printf("%c",obj->type == OBJ_TYPE_LIST ? '[' : '('); for (size_t j = 0; j < obj->l.len; j++) { printobj(obj->l.ele[j],flags); - if (j != obj->l.len-1) printf(", "); + if (j != obj->l.len-1) printf(" "); } if (color) printf("%s",escape); /* Restore upper level color. */ if (repr) printf("%c",obj->type == OBJ_TYPE_LIST ? ']' : ')');