From 16fc559bc4fe94895227e60d97be71dd04a87ba4 Mon Sep 17 00:00:00 2001 From: Victor Date: Sun, 18 Feb 2024 22:16:56 -0300 Subject: [PATCH] fix: doc typo (#769) --- middleware.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/middleware.go b/middleware.go index ac2bbc9..1fccbb7 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]) }