Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 31e4401

Browse files
Merge pull request gin-gonic#556 from mpuncel/mpuncel/fix-godoc-handlername
fix typo in godoc for func (*Context) HandlerName
2 parents 7cdebae + 7171b96 commit 31e4401

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

context.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (c *Context) Copy() *Context {
7777
return &cp
7878
}
7979

80-
// HandlerName returns the main handle's name. For example if the handler is "handleGetUsers()", this
80+
// HandlerName returns the main handler's name. For example if the handler is "handleGetUsers()", this
8181
// function will return "main.handleGetUsers"
8282
func (c *Context) HandlerName() string {
8383
return nameOfFunction(c.handlers.Last())
@@ -98,7 +98,7 @@ func (c *Context) Next() {
9898
}
9999
}
100100

101-
// IsAborted returns true if the currect context was aborted.
101+
// IsAborted returns true if the current context was aborted.
102102
func (c *Context) IsAborted() bool {
103103
return c.index >= abortIndex
104104
}

0 commit comments

Comments
 (0)