Merge pull request #7225 from kalsprite/field_list

minor typos
This commit is contained in:
Jeroen van Rijn
2026-08-05 04:06:05 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -2739,7 +2739,7 @@ gb_internal void check_cast_error_suggestion(CheckerContext *c, Operand *o, Type
}
} else if (is_type_integer(o->type) && is_type_pointer(type)) {
if (is_type_uintptr(o->type)) {
error_line("\tSuggestion: %a may be directly casted to %s\n", a, b);
error_line("\tSuggestion: %s may be directly casted to %s\n", a, b);
} else {
error_line("\tSuggestion: for an integer to be casted to a pointer, it must be converted to 'uintptr' first\n");
}

View File

@@ -4317,7 +4317,7 @@ gb_internal u32 check_field_prefixes(AstFile *f, isize name_count, u32 allowed_f
if (m.token_kind == Token_Hash) {
prefix = "#";
}
syntax_error(f->curr_token, "'%s%.*s' in not allowed within this field list", prefix, LIT(m.name));
syntax_error(f->curr_token, "'%s%.*s' is not allowed within this field list", prefix, LIT(m.name));
}
}