From 3ff5fa1b8d0bb569adb66fc93c3592c72dd9fb55 Mon Sep 17 00:00:00 2001 From: Muhammad Saqib Date: Fri, 24 Oct 2025 11:14:42 +0500 Subject: [PATCH 1/2] Fix typo in render.Respond documentation --- responder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/responder.go b/responder.go index f38807d..499bd7f 100644 --- a/responder.go +++ b/responder.go @@ -16,7 +16,7 @@ type M map[string]interface{} // Respond is a package-level variable set to our default Responder. We do this // because it allows you to set render.Respond to another function with the -// same function signature, while also utilizing the render.Responder() function +// same function signature, while also utilizing the DefaultResponder function // itself. Effectively, allowing you to easily add your own logic to the package // defaults. For example, maybe you want to test if v is an error and respond // differently, or log something before you respond. From 3cf5ec91182bbea9f445bf605d7ce1136b895f28 Mon Sep 17 00:00:00 2001 From: Muhammad Saqib Date: Fri, 24 Oct 2025 11:56:16 +0500 Subject: [PATCH 2/2] Fix typo in render.Decode documentation --- decoder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/decoder.go b/decoder.go index c01be83..761b75d 100644 --- a/decoder.go +++ b/decoder.go @@ -12,7 +12,7 @@ import ( // Decode is a package-level variable set to our default Decoder. We do this // because it allows you to set render.Decode to another function with the -// same function signature, while also utilizing the render.Decoder() function +// same function signature, while also utilizing the DefaultDecoder function // itself. Effectively, allowing you to easily add your own logic to the package // defaults. For example, maybe you want to impose a limit on the number of // bytes allowed to be read from the request body.