From c4f4f69b93890a9248286c5d9f61fd3eb55fe4fb Mon Sep 17 00:00:00 2001 From: Dan McPherson Date: Mon, 28 Jul 2014 15:56:03 +0200 Subject: [PATCH] Fixing Typos --- pkg/api/apiobj.go | 2 +- pkg/api/helper.go | 2 +- pkg/kubelet/docker.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/api/apiobj.go b/pkg/api/apiobj.go index ccf9c9b93c7..ce5a4cfe40f 100644 --- a/pkg/api/apiobj.go +++ b/pkg/api/apiobj.go @@ -65,7 +65,7 @@ func (a *APIObject) SetYAML(tag string, value interface{}) bool { // into an API object. b, err := yaml.Marshal(value) if err != nil { - panic("yaml can't reverse it's own object") + panic("yaml can't reverse its own object") } obj, err := Decode(b) if err != nil { diff --git a/pkg/api/helper.go b/pkg/api/helper.go index 8dd070e48da..4f1ebc75ead 100644 --- a/pkg/api/helper.go +++ b/pkg/api/helper.go @@ -163,7 +163,7 @@ func prepareEncode(obj interface{}) (*JSONBase, error) { } knownTypes, found := versionMap[jsonBase.APIVersion] if !found { - return nil, fmt.Errorf("struct %s, %v won't be unmarshalable because its not in known versions", jsonBase.APIVersion, obj) + return nil, fmt.Errorf("struct %s, %v won't be unmarshalable because it's not in known versions", jsonBase.APIVersion, obj) } if _, contains := knownTypes[name]; !contains { return nil, fmt.Errorf("struct %s won't be unmarshalable because it's not in knownTypes", name) diff --git a/pkg/kubelet/docker.go b/pkg/kubelet/docker.go index d98963525dd..cf152712f12 100644 --- a/pkg/kubelet/docker.go +++ b/pkg/kubelet/docker.go @@ -183,7 +183,7 @@ func buildDockerName(pod *Pod, container *api.Container) string { // construct the docker name. If the docker name isn't one we created, we may return empty strings. func parseDockerName(name string) (podFullName, containerName string) { // For some reason docker appears to be appending '/' to names. - // If its there, strip it. + // If it's there, strip it. if name[0] == '/' { name = name[1:] }