Skip to content

Commit

Permalink
Update listelement.go
Browse files Browse the repository at this point in the history
  • Loading branch information
itsabgr authored Aug 28, 2021
1 parent ee93f9e commit f5b278a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/sortedlist/listelement.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ type ListElement struct {
deleted atomic2.Uintptr // marks the item as deleting or deleted
}

// NewElement returns an initialized list element.
func NewElement(key uintptr, value interface{}) *ListElement {
return &ListElement{
key: atomic2.Uintptr(key),
Expand Down

0 comments on commit f5b278a

Please sign in to comment.