Skip to content

Commit 3a90759

Browse files
author
Dustin Hiatt
committed
Merge remote-tracking branch 'stephane/master' into unit-tests
2 parents f338bf4 + 535d7db commit 3a90759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trie/ctrie/ctrie.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func (l *lNode) lookup(e *Entry) (interface{}, bool) {
229229

230230
// inserted creates a new L-node with the added entry.
231231
func (l *lNode) inserted(entry *Entry) *lNode {
232-
return &lNode{l.Add(&sNode{entry})}
232+
return &lNode{l.removed(entry).Add(&sNode{entry})}
233233
}
234234

235235
// removed creates a new L-node with the entry removed.

0 commit comments

Comments
 (0)