Fix assorted typos

This commit is contained in:
XhmikosR
2019-07-31 15:36:36 +03:00
committed by Bjørn Erik Pedersen
parent 6512d128c6
commit f7f549e3a7
8 changed files with 9 additions and 9 deletions

View File

@@ -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},
} {

View File

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