Skip to content
Myr

Fix typo/grammar in function comment

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sridhar Ratnakumar · committed by Sridhar Ratnakumar · parent e2fa897 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:context.go+1 added-1 removed
118 unmodified lines
119func (c *Context) Abort() {120 c.index = AbortIndex121}122123// Same than AbortWithStatus() but also writes the specified response status code.123// AbortWithStatus is the same as Abort but also writes the specified response status code.124// For example, the first handler checks if the request is authorized. If it's not, context.AbortWithStatus(401) should be called.125func (c *Context) AbortWithStatus(code int) {126 c.Writer.WriteHeader(code)127 c.Abort()
314 unmodified lines