Browse Source

优化注释

gitlink
Sydonian 1 year ago
parent
commit
5da7b2e42a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      pkgs/trie/trie.go

+ 1
- 0
pkgs/trie/trie.go View File

@@ -101,6 +101,7 @@ func (n *Node[T]) RemoveSelf(cleanParent bool) {
n.Parent = nil
}

// 修改时需要注意允许在visitorFn中删除当前节点
func (n *Node[T]) Iterate(visitorFn func(word string, node *Node[T], isWordNode bool) VisitCtrl) {
if n.WordNexts != nil {
for word, node := range n.WordNexts {


Loading…
Cancel
Save