Explorar o código

Cosmetic changes

Manu Mtz.-Almeida %!s(int64=10) %!d(string=hai) anos
pai
achega
7b4e9a81a5
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      CHANGELOG.md
  2. 2 2
      context.go

+ 1 - 1
CHANGELOG.md

@@ -2,7 +2,7 @@
 
 ###Gin 1.0rc2 (...)
 
-- [PERFORMANCE] Fast path for writting Content-Type.
+- [PERFORMANCE] Fast path for writing Content-Type.
 - [PERFORMANCE] Much faster 404 routing
 - [PERFORMANCE] Allocation optimizations
 - [PERFORMANCE] Faster root tree lookup

+ 2 - 2
context.go

@@ -412,9 +412,9 @@ func (c *Context) Stream(step func(w io.Writer) bool) {
 		case <-clientGone:
 			return
 		default:
-			keepopen := step(w)
+			keepOpen := step(w)
 			w.Flush()
-			if !keepopen {
+			if !keepOpen {
 				return
 			}
 		}