aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-21 14:59:47 +0000
committergingerBill <bill@gingerbill.org>2024-03-21 14:59:47 +0000
commit6b6f72e7bd3030c53d7a59dacdcb28146340188d (patch)
tree72b5b4c6cafd9330d6fcdb099c8312d1a50b8728 /src/check_expr.cpp
parentc8cdb22f0b55855b259c3cceb6b2b3734a195271 (diff)
Fix #3305
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 1f060506a..97ceea600 100644
--- a/src/check_expr.cpp
+++ b/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));
}
}
}