Skip to content
Permalink
Browse files
Fix lang.FormatPercent description
Successor PR for gohugoio/hugoDocs#1504
  • Loading branch information
salim-b authored and bep committed Aug 3, 2021
1 parent dfe54d3 commit d6c8cd771834ae2913658c652e30a9feadc2a7b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpl/lang/lang.go
@@ -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 {

0 comments on commit d6c8cd7

Please sign in to comment.