WriteConfig should be SetConfig

The leading text suggests use of SetConfig but code contains WriteConfig
This commit is contained in:
Aleš Vaupotič 2019-10-01 19:39:20 +02:00 committed by GitHub
parent 6249481c29
commit 1406b6a193
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -576,7 +576,7 @@ var config buntdb.Config
if err := db.ReadConfig(&config); err != nil{
log.Fatal(err)
}
if err := db.WriteConfig(config); err != nil{
if err := db.SetConfig(config); err != nil{
log.Fatal(err)
}
```