Skip to content

Commit

Permalink
Remove unused named parameter from Front() method
Browse files Browse the repository at this point in the history
  • Loading branch information
Sadman007 committed Sep 22, 2024
1 parent ae8cc38 commit d71c341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skiplist.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (list *SkipList) SetRandSource(source rand.Source) {
// Front returns the first element.
//
// The complexity is O(1).
func (list *SkipList) Front() (front *Element) {
func (list *SkipList) Front() *Element {
return list.levels[0]
}

Expand Down

0 comments on commit d71c341

Please sign in to comment.