mirror of
https://github.com/spf13/viper
synced 2024-12-22 11:37:02 +00:00
Fix typo
This commit is contained in:
parent
b8221cf4ee
commit
7fdad0204e
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -797,7 +797,7 @@ func (v *Viper) GetDuration(key string) time.Duration {
|
|||
return cast.ToDuration(v.Get(key))
|
||||
}
|
||||
|
||||
// GetIntSlice returns the value associated with the key as a slice of strings.
|
||||
// GetIntSlice returns the value associated with the key as a slice of int values.
|
||||
func GetIntSlice(key string) []int { return v.GetIntSlice(key) }
|
||||
func (v *Viper) GetIntSlice(key string) []int {
|
||||
return cast.ToIntSlice(v.Get(key))
|
||||
|
|
Loading…
Reference in a new issue