mirror of
https://github.com/spf13/viper
synced 2025-05-06 20:27:17 +00:00
Fix spelling
This commit is contained in:
parent
75bbdad0c3
commit
5b296abffb
1 changed files with 1 additions and 1 deletions
2
viper.go
2
viper.go
|
@ -1233,7 +1233,7 @@ func (v *Viper) WriteConfigAs(filename string) error {
|
|||
return v.writeConfig(filename, true)
|
||||
}
|
||||
|
||||
// SafeWriteConfigAs writes current configuration to a given filename is it does not exist.
|
||||
// SafeWriteConfigAs writes current configuration to a given filename if it does not exist.
|
||||
func SafeWriteConfigAs(filename string) error { return v.SafeWriteConfigAs(filename) }
|
||||
func (v *Viper) SafeWriteConfigAs(filename string) error {
|
||||
return v.writeConfig(filename, false)
|
||||
|
|
Loading…
Add table
Reference in a new issue