Skip to content

Commit a06479b

Browse files
committed
tree: Add comment on #65 fix
1 parent b56ed26 commit a06479b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tree.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ func (n *node) addRoute(path string, handle Handle) {
118118
}
119119

120120
n.children = []*node{&child}
121+
// []byte for proper unicode char conversion, see #65
121122
n.indices = string([]byte{n.path[i]})
122123
n.path = path[:i]
123124
n.handle = nil
@@ -169,6 +170,7 @@ func (n *node) addRoute(path string, handle Handle) {
169170

170171
// Otherwise insert it
171172
if c != ':' && c != '*' {
173+
// []byte for proper unicode char conversion, see #65
172174
n.indices += string([]byte{c})
173175
child := &node{
174176
maxParams: numParams,

0 commit comments

Comments
 (0)