lru: fix mismatched names in comments (#29348)

This commit is contained in:
Daniel Liu 2024-08-20 12:29:08 +08:00 committed by Daniel Liu
parent 6f1d1b6688
commit bc121d3634

View file

@ -174,7 +174,7 @@ func (l *list[T]) init() {
l.root.prev = &l.root
}
// push adds an element to the front of the list.
// pushElem adds an element to the front of the list.
func (l *list[T]) pushElem(e *listElem[T]) {
e.prev = &l.root
e.next = l.root.next