Annotation fix (#3088)

* fix annotation

* fix annotation
This commit is contained in:
Mike 2022-03-20 21:26:12 +08:00 committed by GitHub
parent d8dfaaeb2e
commit 1e24473f5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -325,7 +325,7 @@ func (n *node) insertChild(path string, fullPath string, handlers HandlersChain)
n.priority++ n.priority++
// if the path doesn't end with the wildcard, then there // if the path doesn't end with the wildcard, then there
// will be another non-wildcard subpath starting with '/' // will be another subpath starting with '/'
if len(wildcard) < len(path) { if len(wildcard) < len(path) {
path = path[len(wildcard):] path = path[len(wildcard):]