diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-01 12:33:56 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-01 12:33:56 +0100 |
| commit | f482cc8374d041795dc106709093f194da5ce5bb (patch) | |
| tree | 234907e0a2b19018c28fe07e898d9b952a973d3a /src/check_expr.cpp | |
| parent | 030b8d3f66da21ce3b254c118e1d2dfc72e23a7f (diff) | |
Fix error message
Diffstat (limited to 'src/check_expr.cpp')
| -rw-r--r-- | src/check_expr.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index c7a1b460a..4142968cc 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -2428,7 +2428,7 @@ gb_internal void check_old_for_or_switch_value_usage(Ast *expr) { if ((e->flags & EntityFlag_ForValue) != 0) { Type *parent_type = type_deref(e->Variable.for_loop_parent_type); - error(expr, "Assuming a for-in defined value is addressable as the iterable is passed by value has been disallowed with '-strict-style'."); + error(expr, "Assuming a for-in defined value is addressable as the iterable is passed by value has been disallowed."); if (is_type_map(parent_type)) { error_line("\tSuggestion: Prefer doing 'for key, &%.*s in ...'\n", LIT(e->token.string)); @@ -2438,7 +2438,7 @@ gb_internal void check_old_for_or_switch_value_usage(Ast *expr) { } else { GB_ASSERT((e->flags & EntityFlag_SwitchValue) != 0); - error(expr, "Assuming a switch-in defined value is addressable as the iterable is passed by value has been disallowed with '-strict-style'."); + error(expr, "Assuming a switch-in defined value is addressable as the iterable is passed by value has been disallowed."); error_line("\tSuggestion: Prefer doing 'switch &%.*s in ...'\n", LIT(e->token.string)); } } |