Skip to content

Commit 584d1f0

Browse files
Apply suggestion from @gballet
Co-authored-by: Guillaume Ballet <[email protected]>
1 parent d1922f6 commit 584d1f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trie/trie.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ func (t *Trie) delete(n node, prefix, key []byte) (bool, node, error) {
472472
// always creates a new slice) instead of append to
473473
// avoid modifying n.Key since it might be shared with
474474
// other nodes.
475-
return true, &shortNode{slices.Concat(n.Key, child.Key...), child.Val, t.newFlag()}, nil
475+
return true, &shortNode{slices.Concat(n.Key, child.Key), child.Val, t.newFlag()}, nil
476476
default:
477477
return true, &shortNode{n.Key, child, t.newFlag()}, nil
478478
}

0 commit comments

Comments
 (0)