authorgravatar for tssund93@gmail.comTravis <tssund93@gmail.com> 2020-10-30 09:46:01-05:00
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2020-10-30 21:26:05+02:00
logbb6e39e274eb0a68bfb1029ab75d1791abeb2911
tree17cd3917af904ac2b5bbb63e9cd44effda687c30
parente59f44712d50de8e2e0c9c6515cde6636b124f26

remove extra space in .** error message


3 files changed, 3 insertions(+), 3 deletions(-)

lib/std/zig/ast.zig+1-1
......@@ -326,7 +326,7 @@ pub const Error = union(enum) {
326326 pub const ExtraAllowZeroQualifier = SimpleError("Extra allowzero qualifier");
327327 pub const DeclBetweenFields = SimpleError("Declarations are not allowed between container fields");
328328 pub const InvalidAnd = SimpleError("`&&` is invalid. Note that `and` is boolean AND.");
329 pub const AsteriskAfterPointerDereference = SimpleError("`.*` can't be followed by `*`. Are you missing a space?");
329 pub const AsteriskAfterPointerDereference = SimpleError("`.*` can't be followed by `*`. Are you missing a space?");
330330
331331 pub const ExpectedCall = struct {
332332 node: *Node,
src/stage1/tokenizer.cpp+1-1
......@@ -594,7 +594,7 @@ void tokenize(Buf *buf, Tokenization *out) {
594594 case TokenizeStateSawDotStar:
595595 switch (c) {
596596 case '*':
597 tokenize_error(&t, "`.*` can't be followed by `*`. Are you missing a space?");
597 tokenize_error(&t, "`.*` can't be followed by `*`. Are you missing a space?");
598598 break;
599599 default:
600600 t.pos -= 1;
test/compile_errors.zig+1-1
......@@ -8216,6 +8216,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void {
82168216 \\ var sequence = "repeat".*** 10;
82178217 \\}
82188218 , &[_][]const u8{
8219 "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?",
8219 "tmp.zig:2:30: error: `.*` can't be followed by `*`. Are you missing a space?",
82208220 });
82218221}