Merge pull request #269 from srid/patch-1

Fix typo/grammar in function comment
This commit is contained in:
Manu Mtz.-Almeida 2015-05-06 18:20:50 +02:00
commit bd2c864346

View File

@ -120,7 +120,7 @@ func (c *Context) Abort() {
c.index = AbortIndex 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. // 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) { func (c *Context) AbortWithStatus(code int) {
c.Writer.WriteHeader(code) c.Writer.WriteHeader(code)