Fix typo/grammar in function comment

This commit is contained in:
Sridhar Ratnakumar 2015-04-25 21:27:04 -07:00
parent e2fa89777e
commit ffd35c365e
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ func (c *Context) Abort() {
c.index = AbortIndex
}
// Same than AbortWithStatus() but also writes the specified response status code.
// AbortWithStatus is the same as Abort but also writes the specified response status code.
// For example, the first handler checks if the request is authorized. If it's not, context.AbortWithStatus(401) should be called.
func (c *Context) AbortWithStatus(code int) {
c.Writer.WriteHeader(code)