Skip to content

Commit

Permalink
Merge pull request #269 from srid/patch-1
Browse files Browse the repository at this point in the history
Fix typo/grammar in function comment
  • Loading branch information
manucorporat committed May 6, 2015
2 parents e2fa897 + ffd35c3 commit bd2c864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit bd2c864

Please sign in to comment.