commit 63383a8af8bf45b2de78967a2fe8773a5639d36b (tree)
parent c5ca0fe237e105b95c8edb7f80da899012e573f8
Author: Andrew Kelley <andrew@ziglang.org>
Date: Wed, 19 Feb 2020 01:24:19 -0500
consistent capitalization of error message
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/parser.cpp b/src/parser.cpp
@@ -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;
diff --git a/test/compile_errors.zig b/test/compile_errors.zig
@@ -17,7 +17,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
\\ return a + b;
\\}
, &[_][]const u8{
- "tmp.zig:1:1: error: Extern functions have no body",
+ "tmp.zig:1:1: error: extern functions have no body",
});
cases.addTest("duplicate field in anonymous struct literal",