diff --git a/text/family_parser.go b/text/family_parser.go index 544235b5..602916c0 100644 --- a/text/family_parser.go +++ b/text/family_parser.go @@ -224,7 +224,7 @@ func (p *parser) parse(rule string) ([]string, error) { // // LIST ::= | func (p *parser) parseList() error { - if len(p.tokens) < 0 { + if len(p.tokens) == 0 { return fmt.Errorf("expected family name, got EOF") } if head := p.tokens[0]; head.kind != tokenStr {