diff --git a/lib/std/zig/ast.zig b/lib/std/zig/ast.zig index eb878fb889e41bac6fc6b33a471d86e2a0f2e02f..3e2f08cd061c58e86c0b38e87aa528351241e9e7 100644 --- a/lib/std/zig/ast.zig +++ b/lib/std/zig/ast.zig @@ -326,7 +326,7 @@ pub const Error = union(enum) { pub const ExtraAllowZeroQualifier = SimpleError("Extra allowzero qualifier"); pub const DeclBetweenFields = SimpleError("Declarations are not allowed between container fields"); pub const InvalidAnd = SimpleError("`&&` is invalid. Note that `and` is boolean AND."); - pub const AsteriskAfterPointerDereference = SimpleError("`.*` can't be followed by `*`. Are you missing a space?"); + pub const AsteriskAfterPointerDereference = SimpleError("`.*` can't be followed by `*`. Are you missing a space?"); pub const ExpectedCall = struct { node: *Node, diff --git a/src/stage1/tokenizer.cpp b/src/stage1/tokenizer.cpp index a51f2c5c72e3653de75d1b98ce8f5958b3ae716c..09e87d23be2a3531d30e9df3f393b3a9a74f0975 100644 --- a/src/stage1/tokenizer.cpp +++ b/src/stage1/tokenizer.cpp @@ -594,7 +594,7 @@ void tokenize(Buf *buf, Tokenization *out) { case TokenizeStateSawDotStar: switch (c) { case '*': - tokenize_error(&t, "`.*` can't be followed by `*`. Are you missing a space?"); + tokenize_error(&t, "`.*` can't be followed by `*`. Are you missing a space?"); break; default: t.pos -= 1; diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 86b9979cabe4c2fe7644797e65ecac7691e7bcc5..e1a421fd1ea410cdd0972584185dae60543f48a3 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -8216,6 +8216,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { \\ var sequence = "repeat".*** 10; \\} , &[_][]const u8{ - "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?", + "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?", }); }