39b2e07d by astaxie

Merge pull request #336 from vadimi/master

Fixed some typos
2 parents 9f3058ca 12a37f71
...@@ -30,7 +30,7 @@ func (app *App) Run() { ...@@ -30,7 +30,7 @@ func (app *App) Run() {
30 addr = fmt.Sprintf("%s:%d", HttpAddr, HttpPort) 30 addr = fmt.Sprintf("%s:%d", HttpAddr, HttpPort)
31 } 31 }
32 32
33 BeeLogger.Info("Runing on %s", addr) 33 BeeLogger.Info("Running on %s", addr)
34 34
35 var ( 35 var (
36 err error 36 err error
......
...@@ -155,7 +155,7 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM ...@@ -155,7 +155,7 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM
155 for _, v := range semi { 155 for _, v := range semi {
156 colon := strings.Split(v, ":") 156 colon := strings.Split(v, ":")
157 if len(colon) != 2 { 157 if len(colon) != 2 {
158 panic("method mapping fomate is error") 158 panic("method mapping format is invalid")
159 } 159 }
160 comma := strings.Split(colon[0], ",") 160 comma := strings.Split(colon[0], ",")
161 for _, m := range comma { 161 for _, m := range comma {
...@@ -163,10 +163,10 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM ...@@ -163,10 +163,10 @@ func (p *ControllerRegistor) Add(pattern string, c ControllerInterface, mappingM
163 if val := reflectVal.MethodByName(colon[1]); val.IsValid() { 163 if val := reflectVal.MethodByName(colon[1]); val.IsValid() {
164 methods[strings.ToLower(m)] = colon[1] 164 methods[strings.ToLower(m)] = colon[1]
165 } else { 165 } else {
166 panic(colon[1] + " method don't exist in the controller " + t.Name()) 166 panic(colon[1] + " method doesn't exist in the controller " + t.Name())
167 } 167 }
168 } else { 168 } else {
169 panic(v + " is an error method mapping,Don't exist method named " + m) 169 panic(v + " is an invalid method mapping. Method doesn't exist " + m)
170 } 170 }
171 } 171 }
172 } 172 }
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!