Skip to content

Commit

Permalink
fix: doc typo (#769)
Browse files Browse the repository at this point in the history
  • Loading branch information
victoraugustolls committed Feb 19, 2024
1 parent 1323ede commit 16fc559
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.go
Expand Up @@ -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])
}
Expand Down

0 comments on commit 16fc559

Please sign in to comment.