diff --git a/lists/arraylist/arraylist.go b/lists/arraylist/arraylist.go index 15fe5f6..bfedac9 100644 --- a/lists/arraylist/arraylist.go +++ b/lists/arraylist/arraylist.go @@ -61,7 +61,7 @@ func (list *List) Get(index int) (interface{}, bool) { return list.elements[index], true } -// Remove removes one or more elements from the list with the supplied indices. +// Remove removes the element at the given index from the list. func (list *List) Remove(index int) { if !list.withinRange(index) { diff --git a/lists/doublylinkedlist/doublylinkedlist.go b/lists/doublylinkedlist/doublylinkedlist.go index be28251..9035e38 100644 --- a/lists/doublylinkedlist/doublylinkedlist.go +++ b/lists/doublylinkedlist/doublylinkedlist.go @@ -100,7 +100,7 @@ func (list *List) Get(index int) (interface{}, bool) { return element.value, true } -// Remove removes one or more elements from the list with the supplied indices. +// Remove removes the element at the given index from the list. func (list *List) Remove(index int) { if !list.withinRange(index) { diff --git a/lists/singlylinkedlist/singlylinkedlist.go b/lists/singlylinkedlist/singlylinkedlist.go index 803d70c..b61df78 100644 --- a/lists/singlylinkedlist/singlylinkedlist.go +++ b/lists/singlylinkedlist/singlylinkedlist.go @@ -90,7 +90,7 @@ func (list *List) Get(index int) (interface{}, bool) { return element.value, true } -// Remove removes one or more elements from the list with the supplied indices. +// Remove removes the element at the given index from the list. func (list *List) Remove(index int) { if !list.withinRange(index) {