diff options
author | Phil Davis <phil@jankaritech.com> | 2020-12-16 14:11:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 14:11:32 +0300 |
commit | 04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 (patch) | |
tree | 585bf761f0a1cfc69dffcd8afd22e94ca9da7c07 /tpl/collections | |
parent | 21fa1e86f2aa929fb0983a0cc3dc4e271ea1cc54 (diff) |
all: Fix minor typos
Diffstat (limited to 'tpl/collections')
-rw-r--r-- | tpl/collections/collections_test.go | 4 | ||||
-rw-r--r-- | tpl/collections/merge.go | 2 | ||||
-rw-r--r-- | tpl/collections/sort_test.go | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tpl/collections/collections_test.go b/tpl/collections/collections_test.go index a75ec9d16..a9bf9a09b 100644 --- a/tpl/collections/collections_test.go +++ b/tpl/collections/collections_test.go @@ -673,7 +673,7 @@ func TestShuffleRandomising(t *testing.T) { // Note that this test can fail with false negative result if the shuffle // of the sequence happens to be the same as the original sequence. However - // the propability of the event is 10^-158 which is negligible. + // the probability of the event is 10^-158 which is negligible. seqLen := 100 rand.Seed(time.Now().UTC().UnixNano()) @@ -835,7 +835,7 @@ func TestUniq(t *testing.T) { // Structs {pagesVals{p3v, p2v, p3v, p2v}, pagesVals{p3v, p2v}, false}, - // not Comparable(), use hashstruscture + // not Comparable(), use hashstructure {[]map[string]int{ {"K1": 1}, {"K2": 2}, {"K1": 1}, {"K2": 1}, }, []map[string]int{ diff --git a/tpl/collections/merge.go b/tpl/collections/merge.go index de59de0af..43815560f 100644 --- a/tpl/collections/merge.go +++ b/tpl/collections/merge.go @@ -23,7 +23,7 @@ import ( "github.com/pkg/errors" ) -// Merge creates a copy of the final parameter and merges the preceeding +// Merge creates a copy of the final parameter and merges the preceding // parameters into it in reverse order. // Currently only maps are supported. Key handling is case insensitive. func (ns *Namespace) Merge(params ...interface{}) (interface{}, error) { diff --git a/tpl/collections/sort_test.go b/tpl/collections/sort_test.go index 4798b5090..aa05b1874 100644 --- a/tpl/collections/sort_test.go +++ b/tpl/collections/sort_test.go @@ -53,7 +53,7 @@ func TestSort(t *testing.T) { {[]int{1, 2, 3, 4, 5}, nil, "asc", []int{1, 2, 3, 4, 5}}, {[]int{5, 4, 3, 1, 2}, nil, "asc", []int{1, 2, 3, 4, 5}}, - // test sort key parameter is focibly set empty + // test sort key parameter is forcibly set empty {[]string{"class3", "class1", "class2"}, map[int]string{1: "a"}, "asc", []string{"class1", "class2", "class3"}}, // test map sorting by keys {map[string]int{"1": 10, "2": 20, "3": 30, "4": 40, "5": 50}, nil, "asc", []int{10, 20, 30, 40, 50}}, |