From a9fcb3c524393b663b3910a81254f9ccc9bd7b91 Mon Sep 17 00:00:00 2001 From: yuya-morimoto Date: Tue, 7 Oct 2025 16:34:58 +0900 Subject: [PATCH] Fix typo "+" --- router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router.go b/router.go index 49b56966d..912cfeac0 100644 --- a/router.go +++ b/router.go @@ -692,7 +692,7 @@ func (r *Router) Find(method, path string, c Context) { // update indexes/search in case we need to backtrack when no handler match is found paramIndex++ - searchIndex += +len(search) + searchIndex += len(search) search = "" if h := currentNode.findMethod(method); h != nil {