fix grammar on import name error

This commit is contained in:
kalsprite
2026-08-04 18:26:02 -07:00
parent dc28a91e88
commit 4780d24836

View File

@@ -5647,7 +5647,7 @@ gb_internal void check_add_import_decl(CheckerContext *ctx, Ast *decl) {
ERROR_BLOCK();
if (id->import_name.string.len > 0) {
error(token, "Import name '%.*s' cannot be use as an import name as it is not a valid identifier", LIT(id->import_name.string));
error(token, "Import name '%.*s' is not a valid identifier", LIT(id->import_name.string));
} else {
error(id->token, "Import name '%.*s' is not a valid identifier", LIT(invalid_name));
error_line("\tSuggestion: Rename the directory or explicitly set an import name like this 'import <new_name> %.*s'", LIT(id->relpath.string));