From 661014f49f0be54846902e4f3cc6d0945372e7c0 Mon Sep 17 00:00:00 2001 From: Max Wash Date: Fri, 9 May 2025 13:39:02 +0100 Subject: [PATCH] lang: adjust for-loop diagnostic wording --- lang/diag.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lang/diag.c b/lang/diag.c index b2124ef..009fcfd 100644 --- a/lang/diag.c +++ b/lang/diag.c @@ -20,8 +20,9 @@ static const struct ivy_diag_msg diag_msg[] = { MSG(IVY_LANG_MSG_DO_UNEXPECTED_IN_INLINE_FOR, "`[yellow]do[reset]` is not used in inline for-loops."), MSG(IVY_LANG_MSG_PREVIOUS_EXPRESSION_IS_FOR_BODY, - "the previous expression is used as the for-loop body. perhaps you " - "forgot a [blue]statement separator[reset]?"), + "the expression before `[yellow]for[reset]` is used as the " + "for-loop body. perhaps you forgot a [blue]statement " + "separator[reset]?"), }; static const size_t nr_diag_msg = sizeof diag_msg / sizeof diag_msg[0];