From b1ed6024c416de9f035226d50288f2df5cc0e40e Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 19 Jan 2024 09:53:05 -0300 Subject: [PATCH] fix: doc typo --- middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.go b/middleware.go index ac2bbc9e..1fccbb72 100644 --- a/middleware.go +++ b/middleware.go @@ -58,7 +58,7 @@ func parseRequestURL(c *Client, r *Request) error { defer releaseBuffer(buf) // search for the next or first opened curly bracket for curr := strings.Index(r.URL, "{"); curr > prev; curr = prev + strings.Index(r.URL[prev:], "{") { - // write everything form the previous position up to the current + // write everything from the previous position up to the current if curr > prev { buf.WriteString(r.URL[prev:curr]) }