From 87d3bf928a9e7ff5d5cd0abba4af7e9bc154a2b0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 3 Nov 2024 13:48:40 -0500 Subject: Fix error message --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: [] 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); } -- cgit v1.2.3