consistent capitalization of error message

This commit is contained in:
Andrew Kelley
2020-02-19 01:24:19 -05:00
parent c5ca0fe237
commit 63383a8af8
2 changed files with 2 additions and 2 deletions

View File

@@ -690,7 +690,7 @@ static AstNode *ast_parse_top_level_decl(ParseContext *pc, VisibMod visib_mod, B
AstNode *res = fn_proto;
if (body != nullptr) {
if (fn_proto->data.fn_proto.is_extern) {
ast_error(pc, first, "Extern functions have no body");
ast_error(pc, first, "extern functions have no body");
}
res = ast_create_node_copy_line_info(pc, NodeTypeFnDef, fn_proto);
res->data.fn_def.fn_proto = fn_proto;