diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 13:48:40 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-03 13:48:40 -0500 |
| commit | 87d3bf928a9e7ff5d5cd0abba4af7e9bc154a2b0 (patch) | |
| tree | 868fa4b586fb99fe1762b2fc0858a222231cc1f9 | |
| parent | 078b4431854895c64d9b55bc3e1a9122cc911f48 (diff) | |
Fix error message
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
