From 2324643026ebf576062a4c11711b085ea031e17c Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Thu, 29 Dec 2016 22:44:40 -0500 Subject: [PATCH] Fix WriteSuccess func description --- response.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/response.go b/response.go index 2b0dcbc..85b36d4 100644 --- a/response.go +++ b/response.go @@ -41,7 +41,7 @@ func renderString(w http.ResponseWriter, status int, msg string) error { return writeBody(w, []byte(msg), status, "text/plain") } -// WriteError writes the successful data and metadata to the ResponseWriter as +// WriteSuccess writes the successful data and metadata to the ResponseWriter as // JSON. func WriteSuccess(w http.ResponseWriter, data interface{}, status int) error { env := &Envelope{