From 3917dc6adcba4aba290e11c2e5374bd354d9fcbd Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Mon, 11 Mar 2024 22:08:03 +0100 Subject: [PATCH] Fix expectSeparator --- parser.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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