Fix commaList
This commit is contained in:
parent
7b6c1b8398
commit
4280576f5f
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue