From 20139ad756274e6b9b18a7d308fe125584bd82cd Mon Sep 17 00:00:00 2001 From: Hunam Date: Thu, 12 May 2022 11:23:32 +0200 Subject: [PATCH] checker: fix typo (#14368) --- vlib/v/checker/checker.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index fb47ebc287..02d2d84eb9 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -491,7 +491,7 @@ pub fn (mut c Checker) sum_type_decl(node ast.SumTypeDecl) { } else if sym.kind == .interface_ && sym.language != .js { c.error('sum type cannot hold an interface', variant.pos) } else if sym.kind == .struct_ && sym.language == .js { - c.error('sum type cannot hold an JS struct', variant.pos) + c.error('sum type cannot hold a JS struct', variant.pos) } else if mut sym.info is ast.Struct { if sym.info.is_generic { if !variant.typ.has_flag(.generic) {