mirror of
https://github.com/antirez/aocla
synced 2024-12-26 09:58:42 +01:00
Remove comma from list printing: use same syntax as language.
This commit is contained in:
parent
3fdd4d87ef
commit
ea3886d0cb
1 changed files with 1 additions and 1 deletions
2
aocla.c
2
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 ? ']' : ')');
|
||||
|
|
Loading…
Reference in a new issue