Merge pull request #132 from shawnps/patch-1

fix typos
This commit is contained in:
shirou 2015-12-31 23:20:55 +09:00
commit ef151b7ff7
1 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ func mustParseFloat64(val string) float64 {
return vv return vv
} }
// StringsHas checks the target string slice containes src or not // StringsHas checks the target string slice contains src or not
func StringsHas(target []string, src string) bool { func StringsHas(target []string, src string) bool {
for _, t := range target { for _, t := range target {
if strings.TrimSpace(t) == src { if strings.TrimSpace(t) == src {
@ -236,7 +236,7 @@ func PathExists(filename string) bool {
return false return false
} }
//GetEnv retreives the environment variable key. If it does not exist it returns the default. //GetEnv retrieves the environment variable key. If it does not exist it returns the default.
func GetEnv(key string, dfault string, combineWith ...string) string { func GetEnv(key string, dfault string, combineWith ...string) string {
value := os.Getenv(key) value := os.Getenv(key)
if value == "" { if value == "" {