diff options
Diffstat (limited to 'types.c')
| -rw-r--r-- | types.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -57,9 +57,8 @@ CORD type_to_cord(type_t *t) { if (arg->next) c = CORD_cat(c, ", "); } if (fn->ret && fn->ret->tag != VoidType) - c = CORD_all(c, ")->", type_to_cord(fn->ret)); - else - c = CORD_all(c, ")"); + c = CORD_all(c, "->", type_to_cord(fn->ret)); + c = CORD_all(c, ")"); return c; } case StructType: { |
