From 503302ceef7290027eedcc78c903be32fad90433 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 18 May 2023 14:32:52 -0700 Subject: Sema: simplify "duplicate test name" error message * Avoid redundant words ("found") - All compile errors are found by the compiler * Avoid unnecessary prepositions ("with") - There is a grammatically correct alternate word order without the preposition. --- src/Module.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Module.zig') diff --git a/src/Module.zig b/src/Module.zig index 6d1a5acb09..d87c86b864 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -5354,7 +5354,7 @@ fn scanDecl(iter: *ScanDeclIter, decl_sub_index: usize, flags: u4) Allocator.Err const msg = try ErrorMsg.create( gpa, src_loc, - "found test declaration with duplicate name: {s}", + "duplicate test name: {s}", .{decl_name}, ); errdefer msg.destroy(gpa); -- cgit v1.2.3