Browse Source

Improve grammar

gingerBill 2 years ago
parent
commit
e24315eed8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/check_decl.cpp
  2. 1 1
      src/check_expr.cpp

+ 1 - 1
src/check_decl.cpp

@@ -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)) {
 			begin_error_block();
 			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();
 		}

+ 1 - 1
src/check_expr.cpp

@@ -5050,7 +5050,7 @@ gb_internal bool check_no_copy_assignment(Operand const &o, String const &contex
 			if (expr->kind == Ast_CallExpr) {
 				// Okay
 			} 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;
 			}
 		}