use sprintf not string() for humanizing int

pull/4/head
cblgh 2021-06-06 15:32:25 +02:00
rodzic fd4e186e5a
commit 34b4978895
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -50,7 +50,7 @@ func Humanize(n int) string {
return fmt.Sprintf("%dm", n/1000000)
}
return string(n)
return fmt.Sprintf("%d", n)
}
func Contains(arr []string, query string) bool {