Fix typos in some error messages, comments

- cmd/kubeadm
- RemoveContnainers -> RemoveContainers
- iterface -> interface
- stategicMergeSlice -> strategicMergeSlice
This commit is contained in:
Taesun Lee 2020-02-23 00:44:47 +09:00
parent 96dfa3f605
commit d10e3da92d
3 changed files with 4 additions and 4 deletions

View File

@ -80,13 +80,13 @@ func newStrategicMergeSliceFromBytes(in []byte) (strategicMergeSlice, error) {
return err
}
// Get the stategicMergeSlice for the item
// Get the strategicMergeSlice for the item
itemU, err := newStrategicMergeSliceFromBytes(itemJSON)
if err != nil {
return err
}
// append the stategicMergeSlice for the item to the stategicMergeSlice
// append the strategicMergeSlice for the item to the strategicMergeSlice
result = append(result, itemU...)
return nil

View File

@ -30,7 +30,7 @@ import (
// TextOutput describes the plain text output
const TextOutput = "text"
// TextPrintFlags is an iterface to handle custom text output
// TextPrintFlags is an interface to handle custom text output
type TextPrintFlags interface {
ToPrinter(outputFormat string) (Printer, error)
}

View File

@ -219,7 +219,7 @@ func TestRemoveContainers(t *testing.T) {
t.Errorf("unexpected RemoveContainers errors: %v, criSocket: %s, containers: %v", err, tc.criSocket, tc.containers)
}
if tc.isError && err == nil {
t.Errorf("unexpected RemoveContnainers success, criSocket: %s, containers: %v", tc.criSocket, tc.containers)
t.Errorf("unexpected RemoveContainers success, criSocket: %s, containers: %v", tc.criSocket, tc.containers)
}
})
}