Update ini.go

This commit is contained in:
darkweak 2022-04-30 01:36:00 +02:00 committed by GitHub
parent 69c17fafbb
commit 22b78d011f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -478,7 +478,7 @@ func (c *IniConfigContainer) DIY(key string) (v interface{}, err error) {
if v, ok := c.data[strings.ToLower(key)]; ok { if v, ok := c.data[strings.ToLower(key)]; ok {
return v, nil return v, nil
} }
return v, errors.New("key not find") return v, errors.New("key not found")
} }
// section.key or key // section.key or key