summaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2017-08-07 20:19:24 +0200
committerBjørn Erik Pedersen <[email protected]>2017-08-07 20:19:24 +0200
commit46ac7453743f0bd889d0be3505bde2521f9f0336 (patch)
treecdaa5b34a3764d7ab7cb5b2d28efbed928c9b18d /tpl
parent4b54fb07018d5ed66ef82b6a53462e1b15c85d86 (diff)
downloadhugo-46ac7453743f0bd889d0be3505bde2521f9f0336.tar.gz
hugo-46ac7453743f0bd889d0be3505bde2521f9f0336.zip
all: Fix spelling
And some other minor issues.
Diffstat (limited to 'tpl')
-rw-r--r--tpl/internal/templatefuncsRegistry.go2
-rw-r--r--tpl/math/math.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/tpl/internal/templatefuncsRegistry.go b/tpl/internal/templatefuncsRegistry.go
index 85d8c0b3b..0f11be65c 100644
--- a/tpl/internal/templatefuncsRegistry.go
+++ b/tpl/internal/templatefuncsRegistry.go
@@ -84,7 +84,7 @@ type TemplateFuncMethodMapping struct {
Method interface{}
// Any template funcs aliases. This is mainly motivated by keeping
- // backwards compability, but some new template funcs may also make
+ // backwards compatibility, but some new template funcs may also make
// sense to give short and snappy aliases.
// Note that these aliases are global and will be merged, so the last
// key will win.
diff --git a/tpl/math/math.go b/tpl/math/math.go
index f45488166..5ddc3eb9c 100644
--- a/tpl/math/math.go
+++ b/tpl/math/math.go
@@ -92,7 +92,7 @@ func (ns *Namespace) Mul(a, b interface{}) (interface{}, error) {
return DoArithmetic(a, b, '*')
}
-// Sub substracts two numbers.
+// Sub subtracts two numbers.
func (ns *Namespace) Sub(a, b interface{}) (interface{}, error) {
return DoArithmetic(a, b, '-')
}