gingerBill 1 year ago
parent
commit
6b6f72e7bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/check_expr.cpp

+ 1 - 1
src/check_expr.cpp

@@ -1599,7 +1599,7 @@ gb_internal Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *nam
 
 			for (CIdentSuggestion const &suggestion : c_ident_suggestions) {
 				if (name == suggestion.name) {
-					error_line("\tSuggestion: Did you mean %s\n", LIT(suggestion.msg));
+					error_line("\tSuggestion: Did you mean %.*s\n", LIT(suggestion.msg));
 				}
 			}
 		}