summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2019-10-14 22:24:15 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2019-10-14 22:24:15 -0400
commitc3ca8aec22cae9011fbd3a718e969634876fa858 (patch)
tree93d61a1b3b6f4c80aa5725edbdae25e78f88970d /parse.c
parent089b01e0849b9eb01b5ab542b0baabe2d6ce1865 (diff)
minor improvements, including output indentation
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 01f8096..2cef0c2 100644
--- a/parse.c
+++ b/parse.c
@@ -542,7 +542,7 @@ static bool parse_fn_expr(Parser *p, FnExpr *f) {
if (!parse_decl_list(p, &f->ret_decls, DECL_END_LBRACE_COMMA))
return false;
t->token--; /* move back to { */
- if (arr_len(f->ret_decls) > 1 || arr_len(f->ret_decls[0].idents)) {
+ if (arr_len(f->ret_decls) > 1 || arr_len(f->ret_decls[0].idents) > 1) {
f->ret_type.kind = TYPE_TUPLE;
f->ret_type.flags = 0;
f->ret_type.tuple = NULL;