From e0250e287137fd061217c107b061077c98b25dd5 Mon Sep 17 00:00:00 2001 From: Mariano Fevola Date: Fri, 3 Mar 2017 16:24:02 +0000 Subject: [PATCH] Fix typo --- config/ini.go | 2 +- config/yaml/yaml.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/ini.go b/config/ini.go index 6b78f02a..416d48f0 100644 --- a/config/ini.go +++ b/config/ini.go @@ -300,7 +300,7 @@ func (c *IniConfigContainer) GetSection(section string) (map[string]string, erro if v, ok := c.data[section]; ok { return v, nil } - return nil, errors.New("not exist setction") + return nil, errors.New("not exist section") } // SaveConfigFile save the config into file. diff --git a/config/yaml/yaml.go b/config/yaml/yaml.go index bcef4a20..51fe44d3 100644 --- a/config/yaml/yaml.go +++ b/config/yaml/yaml.go @@ -252,7 +252,7 @@ func (c *ConfigContainer) GetSection(section string) (map[string]string, error) if v, ok := c.data[section]; ok { return v.(map[string]string), nil } - return nil, errors.New("not exist setction") + return nil, errors.New("not exist section") } // SaveConfigFile save the config into file