From 82057f08cee867057919c00a96f938283baad4fd Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 10 Jan 2018 21:13:20 +0000 Subject: Fix issue #172 --- src/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 5e5fb7ac0..7810c0e01 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -3965,7 +3965,7 @@ AstNode *parse_switch_stmt(AstFile *f) { body = ast_block_stmt(f, list, open, close); if (!is_type_match) { - tag = convert_stmt_to_expr(f, tag, str_lit("match expression")); + tag = convert_stmt_to_expr(f, tag, str_lit("switch expression")); return ast_switch_stmt(f, token, init, tag, body); } else { return ast_type_switch_stmt(f, token, tag, body); -- cgit v1.2.3