mirror of https://github.com/gin-gonic/gin.git
fix typo in godoc for func (*Context) HandlerName
This commit is contained in:
parent
7cdebae482
commit
13565e1bf5
|
@ -77,7 +77,7 @@ func (c *Context) Copy() *Context {
|
|||
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"
|
||||
func (c *Context) HandlerName() string {
|
||||
return nameOfFunction(c.handlers.Last())
|
||||
|
|
Loading…
Reference in New Issue