Преглед на файлове

Fix typo/grammar in function comment

Sridhar Ratnakumar преди 10 години
родител
ревизия
ffd35c365e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      context.go

+ 1 - 1
context.go

@@ -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)