all: Fix spelling

And some other minor issues.
This commit is contained in:
Bjørn Erik Pedersen
2017-08-07 20:19:24 +02:00
parent 4b54fb0701
commit 46ac745374
8 changed files with 8 additions and 9 deletions

View File

@@ -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.

View File

@@ -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, '-')
}