From 7760d2476184a6bdd83f3e16d446ae9feb07fcba Mon Sep 17 00:00:00 2001 From: astaxie Date: Wed, 17 Aug 2016 23:52:34 +0800 Subject: [PATCH] fix the typo --- config/yaml/yaml.go | 2 +- router.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/yaml/yaml.go b/config/yaml/yaml.go index 64e25cb3..e3260215 100644 --- a/config/yaml/yaml.go +++ b/config/yaml/yaml.go @@ -281,7 +281,7 @@ func (c *ConfigContainer) DIY(key string) (v interface{}, err error) { func (c *ConfigContainer) getData(key string) (interface{}, error) { if len(key) == 0 { - return nil, errors.New("key is emtpy") + return nil, errors.New("key is empty") } if v, ok := c.data[key]; ok { diff --git a/router.go b/router.go index 6dc94a13..2adecbf0 100644 --- a/router.go +++ b/router.go @@ -434,7 +434,7 @@ func (p *ControllerRegister) InsertFilter(pattern string, pos int, filter Filter // add Filter into func (p *ControllerRegister) insertFilterRouter(pos int, mr *FilterRouter) (err error) { if pos < BeforeStatic || pos > FinishRouter { - err = fmt.Errorf("can not find your filter postion") + err = fmt.Errorf("can not find your filter position") return } p.enableFilter = true