From 8dc9a978fc2b0d01c20270b1b690e815e74fdcc7 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Mon, 4 May 2026 16:40:38 +0200 Subject: feat(lexer): error contains line --- examples/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/main.c') diff --git a/examples/main.c b/examples/main.c index d28af79..2b3c3ca 100644 --- a/examples/main.c +++ b/examples/main.c @@ -9,7 +9,7 @@ void foo(char *v) { for (int i = 0; i < doc.errors_len; i++) { struct typdown_Error error = doc.errors[i]; printf("cannot parse '%s', error: %s (%d)\n", v, typdown_getErrorString(error.code), error.code); - printf("%d to %d ", error.location.beg, error.location.end); + printf("line %d: ", error.location.line); for (int j = error.location.beg; j < error.location.end; j++) printf("%c", v[j]); printf("\n"); -- cgit v1.2.3