fix: go fixing

This commit is contained in:
2026-05-05 16:08:38 +02:00
parent 5cc506c256
commit 5075044138
3 changed files with 4 additions and 10 deletions

View File

@@ -174,10 +174,7 @@ func formatNumber(n int) string {
s := fmt.Sprintf("%d", n)
var res []string
for i := len(s); i > 0; i -= 3 {
start := i - 3
if start < 0 {
start = 0
}
start := max(i-3, 0)
res = append([]string{s[start:i]}, res...)
}
return strings.Join(res, " ")