Skip to content

Commit

Permalink
Merge pull request #11 from caarlos0/typo
Browse files Browse the repository at this point in the history
Update env.go
  • Loading branch information
caarlos0 committed Jan 18, 2016
2 parents cfaf17b + 7d721fa commit 65331f1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions env.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (
// Struct to Parse
var ErrNotAStructPtr = errors.New("Expected a pointer to a Struct")

// ErrUnsuportedType if the struct field type is not supported by env
var ErrUnsuportedType = errors.New("Type is not supported")
// ErrUnsupportedType if the struct field type is not supported by env
var ErrUnsupportedType = errors.New("Type is not supported")

// ErrUnsupportedSliceType if the slice element type is not supported by env
var ErrUnsuportedSliceType = errors.New("Unsupported slice type")
var ErrUnsupportedSliceType = errors.New("Unsupported slice type")

// Friendly names for reflect types
var sliceOfInts = reflect.TypeOf([]int(nil))
Expand Down Expand Up @@ -84,7 +84,7 @@ func set(field reflect.Value, refType reflect.StructField, value string) error {
}
field.SetInt(intValue)
default:
return ErrUnsuportedType
return ErrUnsupportedType
}
return nil
}
Expand Down Expand Up @@ -112,7 +112,7 @@ func handleSlice(field reflect.Value, value, separator string) error {
}
field.Set(reflect.ValueOf(boolData))
default:
return ErrUnsuportedSliceType
return ErrUnsupportedSliceType
}
return nil
}
Expand Down

0 comments on commit 65331f1

Please sign in to comment.