Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/sq/sq.go
diff options
context:
space:
mode:
Diffstat (limited to 'sq/sq.go')
-rw-r--r--sq/sq.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sq/sq.go b/sq/sq.go
index 0ddbf0e5..52dc2f59 100644
--- a/sq/sq.go
+++ b/sq/sq.go
@@ -65,8 +65,8 @@ func (sq *sq) CardinalPluralRule(num float64, v uint64) locales.PluralRule {
func (sq *sq) OrdinalPluralRule(num float64, v uint64) locales.PluralRule {
n := math.Abs(num)
- nMod100 := math.Mod(n, 100)
nMod10 := math.Mod(n, 10)
+ nMod100 := math.Mod(n, 100)
if n == 1 {
return locales.PluralRuleOne
@@ -170,7 +170,7 @@ func (sq *sq) FmtPercent(num float64, v uint64) []byte {
b[i], b[j] = b[j], b[i]
}
- b = append(b, sq.Percent[0])
+ b = append(b, sq.percent...)
return b
}