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

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tpl
diff options
context:
space:
mode:
authorSalim B <github@salim.space>2021-08-03 17:22:28 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-08-03 17:56:06 +0300
commitd6c8cd771834ae2913658c652e30a9feadc2a7b7 (patch)
treee8ef9177c1d6278cebc4937ea04ab87799e5059f /tpl
parentdfe54d32169ff6dae18023a4dada6009d48f8636 (diff)
Fix `lang.FormatPercent` description
Successor PR for https://github.com/gohugoio/hugoDocs/pull/1504
Diffstat (limited to 'tpl')
-rw-r--r--tpl/lang/lang.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tpl/lang/lang.go b/tpl/lang/lang.go
index 49f4dc1ec..0e170e041 100644
--- a/tpl/lang/lang.go
+++ b/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 {