Merge pull request #1 from MichaelDeSteven/fix_typo

Fix typo
This commit is contained in:
MichaelDeSteven 2022-02-04 21:03:20 +08:00 committed by GitHub
commit 665b97d1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ func longestCommonPrefix(a, b string) int {
return i
}
// addChild will add a child node, keeping wildcards at the end
// addChild will add a child node, keeping wildcardChild at the end
func (n *node) addChild(child *node) {
if n.wildChild && len(n.children) > 0 {
wildcardChild := n.children[len(n.children)-1]