From deb8f2584ca9f46268639bd5df6a674866fef0af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Manuel=20Hern=C3=A1ndez=20S=C3=A1nchez?= Date: Sun, 22 Jul 2018 13:31:13 +0200 Subject: [PATCH] type on error handler example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5b4fe94..a7deff9 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ Your handler can optionally accept a pointer to its corresponding context. Error ```go func (c *Context) Error(rw web.ResponseWriter, r *web.Request, err interface{}) { rw.WriteHeader(http.StatusInternalServerError) - fmt.Fprint(w, "Error", err) + fmt.Fprint(rw, "Error", err) } ```