typo in pathsToRadix doc (#6253)

This commit is contained in:
Martin 2019-02-18 19:05:04 +01:00 committed by Brian Kassouf
parent 483bc1d86c
commit 4c9e7f4478
1 changed files with 1 additions and 2 deletions

View File

@ -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 {