typo in pathsToRadix doc (#6253)
This commit is contained in:
parent
483bc1d86c
commit
4c9e7f4478
|
@ -784,8 +784,7 @@ func (r *Router) LoginPath(ctx context.Context, path string) bool {
|
|||
return match == remain
|
||||
}
|
||||
|
||||
// pathsToRadix converts a the mapping of special paths to a mapping
|
||||
// of special paths to radix trees.
|
||||
// pathsToRadix converts a list of special paths to a radix tree.
|
||||
func pathsToRadix(paths []string) *radix.Tree {
|
||||
tree := radix.New()
|
||||
for _, path := range paths {
|
||||
|
|
Loading…
Reference in New Issue