diff options
author | XhmikosR <xhmikosr@gmail.com> | 2019-07-31 15:36:36 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-08-01 14:55:48 +0300 |
commit | f7f549e3a7492c787c6abb4900cc0f57c8ab1826 (patch) | |
tree | 18b82b0d343893e0f6e22fac9a6ca5e0f19fc876 /tpl | |
parent | 6512d128c6d33b86f376764ab1d622a89ea18d20 (diff) |
Fix assorted typos
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/collections/merge_test.go | 2 | ||||
-rw-r--r-- | tpl/tplimpl/shortcodes.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tpl/collections/merge_test.go b/tpl/collections/merge_test.go index 9e34a6e98..ca55107ac 100644 --- a/tpl/collections/merge_test.go +++ b/tpl/collections/merge_test.go @@ -61,7 +61,7 @@ func TestMerge(t *testing.T) { // Error cases. {"dst not a map", "not a map", nil, nil, true}, {"src not a map", simpleMap, "not a map", nil, true}, - {"diferent map typs", simpleMap, map[int]interface{}{32: "a"}, nil, true}, + {"different map types", simpleMap, map[int]interface{}{32: "a"}, nil, true}, {"all nil", nil, nil, nil, true}, } { diff --git a/tpl/tplimpl/shortcodes.go b/tpl/tplimpl/shortcodes.go index 92c25f108..b41725463 100644 --- a/tpl/tplimpl/shortcodes.go +++ b/tpl/tplimpl/shortcodes.go @@ -83,7 +83,7 @@ func (s *shortcodeTemplates) fromVariantsSlice(variants []string) (shortcodeVari return bestMatch, true } -// calculate a weight for two string slices of same lenght. +// calculate a weight for two string slices of same length. // higher value means "better match". func (s *shortcodeTemplates) compareVariants(a, b []string) int { |