zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit c32171991b25b323cd68ff96c294bf5a6fa753b8 (tree)
parent 3f7e9ff597a3514bb1c4f1900027c40682ac9f13
Author: Ali Chraghi <alichraghi@pm.me>
Date:   Fri, 17 Feb 2023 12:29:15 +0330

Ast: fix expected_block error message

Fixes #14579

Diffstat:
Mlib/std/zig/Ast.zig | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/std/zig/Ast.zig b/lib/std/zig/Ast.zig @@ -207,7 +207,7 @@ pub fn renderError(tree: Ast, parse_error: Error, stream: anytype) !void { return stream.writeAll("declarations are not allowed between container fields"); }, .expected_block => { - return stream.print("expected block or field, found '{s}'", .{ + return stream.print("expected block, found '{s}'", .{ token_tags[parse_error.token + @boolToInt(parse_error.token_is_prev)].symbol(), }); },