diff options
author | Joe Mooring <joe.mooring@veriphor.com> | 2021-11-01 10:43:41 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-11-01 18:54:43 +0100 |
commit | 04a3b45db4cd28b4821b5c98cd67dfbf1d098957 (patch) | |
tree | cda314834fe9579279cb79a8d1ec90a5c60a4ab3 /tpl | |
parent | 0cc39af68232f1a4981aae2e72cf65da762b5768 (diff) | |
download | hugo-04a3b45db4cd28b4821b5c98cd67dfbf1d098957.tar.gz hugo-04a3b45db4cd28b4821b5c98cd67dfbf1d098957.zip |
Fix description of lang.FormatNumberCustom
It currently refers to itself as a simple alternative, when it should
refer to lang.FormatNumber.
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/lang/lang.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/lang/lang.go b/tpl/lang/lang.go index 3fb321e1a..b593ccfe6 100644 --- a/tpl/lang/lang.go +++ b/tpl/lang/lang.go @@ -20,8 +20,8 @@ import ( "strconv" "strings" - translators "github.com/gohugoio/localescompressed" "github.com/gohugoio/locales" + translators "github.com/gohugoio/localescompressed" "github.com/pkg/errors" "github.com/gohugoio/hugo/deps" @@ -138,7 +138,7 @@ func (ns *Namespace) castPrecisionNumber(precision, number interface{}) (uint64, // Note that numbers are rounded up at 5 or greater. // So, with precision set to 0, 1.5 becomes `2`, and 1.4 becomes `1`. // -// For a simpler function that adapts to the current language, see FormatNumberCustom. +// For a simpler function that adapts to the current language, see FormatNumber. func (ns *Namespace) FormatNumberCustom(precision, number interface{}, options ...interface{}) (string, error) { prec, err := cast.ToIntE(precision) if err != nil { |