Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion patricia/patricia.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (trie *Trie) Delete(key Prefix) (deleted bool) {
}
// i+1 is always a valid index since i is never pointing to the last node.
// The loop above skips at least the last node since we are sure that the item
// is set to nil and it has no children, othewise we would be compacting instead.
// is set to nil and it has no children, otherwise we would be compacting instead.
node.children.remove(path[i+1].prefix[0])

Compact:
Expand Down