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.
2 parents f338bf4 + 535d7db commit 3a90759Copy full SHA for 3a90759
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