Fixed crash in core:odin/parser with #reverse

This commit is contained in:
DanielGavin
2023-12-13 20:08:26 +01:00
parent feba52002e
commit 8e395cc6e9
+1 -1
View File
@@ -1438,7 +1438,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
}
range.reverse = true
} else {
error(p, range.pos, "#reverse can only be applied to a 'for in' statement")
error(p, stmt.pos, "#reverse can only be applied to a 'for in' statement")
}
return stmt
case "include":