| author | |
| committer | |
| log | bb6e39e274eb0a68bfb1029ab75d1791abeb2911 |
| tree | 17cd3917af904ac2b5bbb63e9cd44effda687c30 |
| parent | e59f44712d50de8e2e0c9c6515cde6636b124f26 |
3 files changed, 3 insertions(+), 3 deletions(-)
lib/std/zig/ast.zig+1-1| ... | ... | @@ -326,7 +326,7 @@ pub const Error = union(enum) { |
| 326 | 326 | pub const ExtraAllowZeroQualifier = SimpleError("Extra allowzero qualifier"); |
| 327 | 327 | pub const DeclBetweenFields = SimpleError("Declarations are not allowed between container fields"); |
| 328 | 328 | 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?"); | |
| 330 | 330 | |
| 331 | 331 | pub const ExpectedCall = struct { |
| 332 | 332 | node: *Node, |
src/stage1/tokenizer.cpp+1-1| ... | ... | @@ -594,7 +594,7 @@ void tokenize(Buf *buf, Tokenization *out) { |
| 594 | 594 | case TokenizeStateSawDotStar: |
| 595 | 595 | switch (c) { |
| 596 | 596 | 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?"); | |
| 598 | 598 | break; |
| 599 | 599 | default: |
| 600 | 600 | t.pos -= 1; |
test/compile_errors.zig+1-1| ... | ... | @@ -8216,6 +8216,6 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { |
| 8216 | 8216 | \\ var sequence = "repeat".*** 10; |
| 8217 | 8217 | \\} |
| 8218 | 8218 | , &[_][]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?", | |
| 8220 | 8220 | }); |
| 8221 | 8221 | } |