aboutsummaryrefslogtreecommitdiff
path: root/types.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-09 13:26:28 -0400
commit074cf22ad462eafe963e4a749b2b74cab51211a1 (patch)
treee1d7f938f2d949cc5dcf67ca648f200663e36562 /types.c
parent47fca946065508cff4151a32b3008c161983fd9d (diff)
Change function syntax from `func(args)->ret` to `func(args -> ret)`
Diffstat (limited to 'types.c')
-rw-r--r--types.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/types.c b/types.c
index 9407f957..ec1b66c7 100644
--- a/types.c
+++ b/types.c
@@ -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: {