fix grammar in error message
This commit is contained in:
1 parent
b25ca0bb11
commit
e85667c95c
1 file changed
+1
-1
+1
-1
@@ -60,7 +60,7 @@ gb_internal Type *check_init_variable(CheckerContext *ctx, Entity *e, Operand *o
|
|||||||
error(operand->expr, "Cannot assign a type '%s' to variable '%.*s'", t, LIT(e->token.string));
|
error(operand->expr, "Cannot assign a type '%s' to variable '%.*s'", t, LIT(e->token.string));
|
||||||
}
|
}
|
||||||
if (e->type == nullptr) {
|
if (e->type == nullptr) {
|
||||||
error_line("\tThe type of the variable '%.*s' cannot be inferred as a type does not have a default type\n", LIT(e->token.string));
|
error_line("\tThe type of the variable '%.*s' cannot be inferred as a type and does not have a default type\n", LIT(e->token.string));
|
||||||
}
|
}
|
||||||
e->type = operand->type;
|
e->type = operand->type;
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in new issue
Block a user