From d30f17eb3fa0e4572848780d488bbe80145ded1f Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sat, 2 Feb 2019 04:56:32 +0200 Subject: [PATCH] minor Former-commit-id: eca4c3d2962cc4e0b6108144a7b59f2519b531da --- context/context.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/context/context.go b/context/context.go index fced0607..fd751eb2 100644 --- a/context/context.go +++ b/context/context.go @@ -122,7 +122,7 @@ type Context interface { // so the changes will have affect without a full override. // Usage: you use a native http handler which uses the standard "context" package // to get values instead of the Iris' Context#Values(): - // r := c.Request() + // r := ctx.Request() // stdCtx := context.WithValue(r.Context(), key, val) // ctx.ResetRequest(r.WithContext(stdCtx)). ResetRequest(r *http.Request) @@ -1088,7 +1088,7 @@ func (ctx *context) Request() *http.Request { // so the changes will have affect without a full override. // Usage: you use a native http handler which uses the standard "context" package // to get values instead of the Iris' Context#Values(): -// r := c.Request() +// r := ctx.Request() // stdCtx := context.WithValue(r.Context(), key, val) // ctx.ResetRequest(r.WithContext(stdCtx)). func (ctx *context) ResetRequest(r *http.Request) {