mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 18:51:40 +00:00
Fix lang.FormatPercent
description
Successor PR for https://github.com/gohugoio/hugoDocs/pull/1504
This commit is contained in:
parent
dfe54d3216
commit
d6c8cd7718
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ func (ns *Namespace) FormatNumber(precision, number interface{}) (string, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FormatPercent formats number with the given precision for the current language.
|
// 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) {
|
func (ns *Namespace) FormatPercent(precision, number interface{}) (string, error) {
|
||||||
p, n, err := ns.castPrecisionNumber(precision, number)
|
p, n, err := ns.castPrecisionNumber(precision, number)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue