authorgravatar for alichraghi@proton.meAli Chraghi <alichraghi@proton.me> 2023-02-17 12:29:15+03:30
committergravatar for git@vexu.euVeikka Tuominen <git@vexu.eu> 2023-02-17 20:54:50+02:00
logc32171991b25b323cd68ff96c294bf5a6fa753b8
treee32f61c0bf249671cddeb32de5ca4c9d62dbdec4
parent3f7e9ff597a3514bb1c4f1900027c40682ac9f13

Ast: fix expected_block error message

Fixes #14579

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

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