mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +02:00
Fix lang.FormatPercent
description
Successor PR for https://github.com/gohugoio/hugoDocs/pull/1504
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
dfe54d3216
commit
d6c8cd7718
@@ -71,7 +71,7 @@ func (ns *Namespace) FormatNumber(precision, number interface{}) (string, error)
|
||||
}
|
||||
|
||||
// FormatPercent formats number with the given precision for the current language.
|
||||
// Note that the number is assumbed to be percent.
|
||||
// Note that the number is assumed to be a percentage.
|
||||
func (ns *Namespace) FormatPercent(precision, number interface{}) (string, error) {
|
||||
p, n, err := ns.castPrecisionNumber(precision, number)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user