diff options
| author | gingerBill <bill@gingerbill.org> | 2023-04-15 16:16:16 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-04-15 16:16:16 +0100 |
| commit | e24315eed892aeb6c53da78c415455a80ccdf5e5 (patch) | |
| tree | 5246bcb8233558a24ba8faa1e05e3fdb52ed072f /src | |
| parent | dc55e885888a9d036dafea2036c1907306e69d14 (diff) | |
Improve grammar
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_decl.cpp | 2 | ||||
| -rw-r--r-- | src/check_expr.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/check_decl.cpp b/src/check_decl.cpp index 5a8080f96..a984f87a3 100644 --- a/src/check_decl.cpp +++ b/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(); } diff --git a/src/check_expr.cpp b/src/check_expr.cpp index e55765ff8..de9a6b911 100644 --- a/src/check_expr.cpp +++ b/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; } } |