Fix commaList

This commit is contained in:
Sasha Koshka 2024-02-07 17:09:35 -05:00
parent 7b6c1b8398
commit 4280576f5f
1 changed files with 3 additions and 3 deletions

View File

@ -170,9 +170,9 @@ func commaList[ELEMENT any] (items ...ELEMENT) string {
for index, item := range items {
if index > 0 && len(items) > 2 {
list += ", "
}
if index == len(items) - 1 {
list += " or "
if index == len(items) - 1 {
list += " or "
}
}
list += fmt.Sprintf("%v", item)
}