diff --git a/parser.go b/parser.go index 53fc986..2a8c01b 100644 --- a/parser.go +++ b/parser.go @@ -135,7 +135,7 @@ func expectSeparator(tokens []LexToken, separators ...Separator) (Separator, []L separator := tokens[0] if separator.Type != Type_Separator || !slices.Contains(separators, separator.Value.(Separator)) { - return InvalidValue, nil, errors.New("expected one of " + strings.Join(separatorNames, ", ")) + return InvalidValue, nil, errors.New("expected one of " + strings.Join(separatorNames, " ")) } return separator.Value.(Separator), tokens[1:], nil