Преглед изворни кода

Fixed typos in Context (#797)

Simple english typos in the Copy() method
mbesancon пре 9 година
родитељ
комит
2d8477fc42
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      context.go

+ 1 - 1
context.go

@@ -68,7 +68,7 @@ func (c *Context) reset() {
 }
 }
 
 
 // Copy returns a copy of the current context that can be safely used outside the request's scope.
 // Copy returns a copy of the current context that can be safely used outside the request's scope.
-// This have to be used then the context has to be passed to a goroutine.
+// This has to be used when the context has to be passed to a goroutine.
 func (c *Context) Copy() *Context {
 func (c *Context) Copy() *Context {
 	var cp = *c
 	var cp = *c
 	cp.writermem.ResponseWriter = nil
 	cp.writermem.ResponseWriter = nil