Fixing Typos

This commit is contained in:
Dan McPherson 2014-07-28 15:56:03 +02:00
parent 7ab785dc5f
commit c4f4f69b93
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

@ -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:]
}