aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-11-03 13:48:40 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-11-03 13:48:40 -0500
commit87d3bf928a9e7ff5d5cd0abba4af7e9bc154a2b0 (patch)
tree868fa4b586fb99fe1762b2fc0858a222231cc1f9
parent078b4431854895c64d9b55bc3e1a9122cc911f48 (diff)
Fix error message
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.c b/parse.c
index 7af03a16..13c0a208 100644
--- a/parse.c
+++ b/parse.c
@@ -1202,7 +1202,7 @@ PARSER(parse_do) {
// do: [<indent>] body
const char *start = pos;
if (!match_word(&pos, "do")) return NULL;
- ast_t *body = expect(ctx, start, &pos, parse_block, "I expected a body for this 'while'");
+ ast_t *body = expect(ctx, start, &pos, parse_block, "I expected a body for this 'do'");
return NewAST(ctx->file, start, pos, Block, .statements=Match(body, Block)->statements);
}