aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug.c b/src/debug.c
index 6aa4283..b929876 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -198,10 +198,12 @@ static void _type_str(FILE *fp, struct ast_node *type)
struct ast_node *impls = type->_type.struc.impls;
if (impls) {
- fprintf(fp, " (");
+ fprintf(fp, "(");
while (impls) {
_type_str(fp, impls);
impls = impls->next;
+ if (impls)
+ fprintf(fp, ", ");
}
fprintf(fp, ")");
}