We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e740680 commit 535d7dbCopy full SHA for 535d7db
trie/ctrie/ctrie.go
@@ -229,7 +229,7 @@ func (l *lNode) lookup(e *Entry) (interface{}, bool) {
229
230
// inserted creates a new L-node with the added entry.
231
func (l *lNode) inserted(entry *Entry) *lNode {
232
- return &lNode{l.Add(&sNode{entry})}
+ return &lNode{l.removed(entry).Add(&sNode{entry})}
233
}
234
235
// removed creates a new L-node with the entry removed.
0 commit comments