mirror of
https://github.com/odin-lang/Odin.git
synced 2026-07-22 23:42:33 +00:00
Fix typo in union error: excepts -> accepts
Before:
```
foo.odin(4:24) Error: Cannot convert untyped value '""' to 'union {int, bool}' from 'untyped string'
u: union{int, bool} = ""
^^
'union {int, bool}' is a union which only excepts the following types:
'int' or 'bool'
```
After:
```
foo.odin(4:24) Error: Cannot convert untyped value '""' to 'union {int, bool}' from 'untyped string'
u: union{int, bool} = ""
^^
'union {int, bool}' is a union which only accepts the following types:
'int' or 'bool'
```
This commit is contained in:
@@ -5202,7 +5202,7 @@ gb_internal void convert_to_typed(CheckerContext *c, Operand *operand, Type *tar
|
||||
operand->mode = Addressing_Invalid;
|
||||
convert_untyped_error(c, operand, target_type, true);
|
||||
if (count > 0) {
|
||||
error_line("'%s' is a union which only excepts the following types:\n", type_str);
|
||||
error_line("'%s' is a union which only accepts the following types:\n", type_str);
|
||||
|
||||
error_line("\t");
|
||||
for (i32 i = 0; i < count; i++) {
|
||||
|
||||
Reference in New Issue
Block a user