Skip to content

Commit 20139ad

Browse files
authored
checker: fix typo (#14368)
1 parent 4952967 commit 20139ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vlib/v/checker/checker.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ pub fn (mut c Checker) sum_type_decl(node ast.SumTypeDecl) {
491491
} else if sym.kind == .interface_ && sym.language != .js {
492492
c.error('sum type cannot hold an interface', variant.pos)
493493
} else if sym.kind == .struct_ && sym.language == .js {
494-
c.error('sum type cannot hold an JS struct', variant.pos)
494+
c.error('sum type cannot hold a JS struct', variant.pos)
495495
} else if mut sym.info is ast.Struct {
496496
if sym.info.is_generic {
497497
if !variant.typ.has_flag(.generic) {

0 commit comments

Comments
 (0)