From de587680ca1f3495e2ded6f3693eb14538855afd Mon Sep 17 00:00:00 2001 From: Steven127 <1270728683@qq.com> Date: Sun, 30 Jan 2022 16:38:23 +0800 Subject: [PATCH] fix typo --- tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree.go b/tree.go index a30d3496..8bc6fb55 100644 --- a/tree.go +++ b/tree.go @@ -296,7 +296,7 @@ func (n *node) insertChild(path string, fullPath string, handlers HandlersChain) break } - // The wildcard name must not contain ':' and '*' + // The wildcard name must only contain one ':' or '*' charactor if !valid { panic("only one wildcard per path segment is allowed, has: '" + wildcard + "' in path '" + fullPath + "'")