aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}