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) } ```