From d3b7251757f819a1a5f980d86b2abe1eb6c06478 Mon Sep 17 00:00:00 2001 From: "WP. Yingamphol" Date: Sun, 7 Jun 2026 20:22:12 +0700 Subject: [PATCH] Fix error message: 'do' not on the same line as 'for' --- core/odin/parser/parser.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index 9404010da..e213f900e 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -898,7 +898,7 @@ parse_for_stmt :: proc(p: ^Parser) -> ^ast.Stmt { if allow_token(p, .Do) { body = convert_stmt_to_body(p, parse_stmt(p)) if tok.pos.line != body.pos.line { - error(p, body.pos, "the body of a 'do' must be on the same line as 'else'") + error(p, body.pos, "the body of a 'do' must be on the same line as 'for'") } } else {