From fdb1a2c01b1132a1844e00d7164336a6ceb4face Mon Sep 17 00:00:00 2001 From: korvahkh <92224397+korvahkh@users.noreply.github.com> Date: Wed, 1 Jul 2026 21:07:31 -0500 Subject: [PATCH] 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' ``` --- src/check_expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 79e1154a1..5a7149105 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -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++) {