From 0d49f1fed3a711cd20ef09723c976d67d0b37a30 Mon Sep 17 00:00:00 2001 From: Sylphrena Date: Wed, 9 Sep 2026 20:34:19 +0200 Subject: [PATCH] Add constant -> constant index --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index e66db6ab3..891e4093a 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -12211,7 +12211,7 @@ gb_internal ExprKind check_index_expr(CheckerContext *c, Operand *o, Ast *node, gbString str = expr_to_string(o->expr); error(o->expr, "Cannot index a constant '%s' with a variable index", str); if (!build_context.terse_errors) { - error_line("\tSuggestion: store the constant into a variable or index it with a constant\n"); + error_line("\tSuggestion: store the constant into a variable or index it with a constant index\n"); } gb_string_free(str); o->mode = Addressing_Invalid;