Improve grammar
This commit is contained in:
1 parent
dc55e88588
commit
e24315eed8
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -135,7 +135,7 @@ gb_internal void check_init_variables(CheckerContext *ctx, Entity **lhs, isize l
|
|||||||
if (o->type && is_type_no_copy(o->type)) {
|
if (o->type && is_type_no_copy(o->type)) {
|
||||||
begin_error_block();
|
begin_error_block();
|
||||||
if (check_no_copy_assignment(*o, str_lit("initialization"))) {
|
if (check_no_copy_assignment(*o, str_lit("initialization"))) {
|
||||||
error_line("\tInitialization of a #no_copy type must be either implicitly zero, a constant literal, or from a return value a call expression");
|
error_line("\tInitialization of a #no_copy type must be either implicitly zero, a constant literal, or a return value from a call expression");
|
||||||
}
|
}
|
||||||
end_error_block();
|
end_error_block();
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -5050,7 +5050,7 @@ gb_internal bool check_no_copy_assignment(Operand const &o, String const &contex
|
|||||||
if (expr->kind == Ast_CallExpr) {
|
if (expr->kind == Ast_CallExpr) {
|
||||||
// Okay
|
// Okay
|
||||||
} else {
|
} else {
|
||||||
error(o.expr, "Invalid use a #no_copy value in %.*s", LIT(context));
|
error(o.expr, "Invalid use of #no_copy value in %.*s", LIT(context));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user