Skip to content
Myr

fix typo (#3044)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by MichaelDeSteven · committed by GitHub · parent 580e7da · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:tree.go+2 added-2 removed
79 unmodified lines
80 }81 return i82}8384// addChild will add a child node, keeping wildcards at the end84// addChild will add a child node, keeping wildcardChild at the end85func (n *node) addChild(child *node) {86 if n.wildChild && len(n.children) > 0 {87 wildcardChild := n.children[len(n.children)-1]88 n.children = append(n.children[:len(n.children)-1], child, wildcardChild)
206 unmodified lines
295 if i < 0 { // No wildcard found296 break297 }298299 // The wildcard name must not contain ':' and '*'299 // The wildcard name must only contain one ':' or '*' character300 if !valid {301 panic("only one wildcard per path segment is allowed, has: '" +302 wildcard + "' in path '" + fullPath + "'")303 }
568 unmodified lines