Fix `lang.FormatPercent` description - hugo - [fork] hugo port for 9front
(HTM) git clone git@git.drkhsh.at/hugo.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Submodules
(DIR) README
(DIR) LICENSE
---
(DIR) commit d6c8cd771834ae2913658c652e30a9feadc2a7b7
(DIR) parent dfe54d32169ff6dae18023a4dada6009d48f8636
(HTM) Author: Salim B <github@salim.space>
Date: Tue, 3 Aug 2021 14:22:28 +0000
Fix `lang.FormatPercent` description
Successor PR for https://github.com/gohugoio/hugoDocs/pull/1504
Diffstat:
M tpl/lang/lang.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git 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 {