Kaynağa Gözat

Merge pull request #556 from mpuncel/mpuncel/fix-godoc-handlername

fix typo in godoc for func (*Context) HandlerName
Javier Provecho Fernandez 9 yıl önce
ebeveyn
işleme
31e4401f01
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      context.go

+ 2 - 2
context.go

@@ -77,7 +77,7 @@ func (c *Context) Copy() *Context {
 	return &cp
 	return &cp
 }
 }
 
 
-// HandlerName returns the main handle's name. For example if the handler is "handleGetUsers()", this
+// HandlerName returns the main handler's name. For example if the handler is "handleGetUsers()", this
 // function will return "main.handleGetUsers"
 // function will return "main.handleGetUsers"
 func (c *Context) HandlerName() string {
 func (c *Context) HandlerName() string {
 	return nameOfFunction(c.handlers.Last())
 	return nameOfFunction(c.handlers.Last())
@@ -98,7 +98,7 @@ func (c *Context) Next() {
 	}
 	}
 }
 }
 
 
-// IsAborted returns true if the currect context was aborted.
+// IsAborted returns true if the current context was aborted.
 func (c *Context) IsAborted() bool {
 func (c *Context) IsAborted() bool {
 	return c.index >= abortIndex
 	return c.index >= abortIndex
 }
 }