From 1befeeefc9097a114c62e57f1be20f31c38c7907 Mon Sep 17 00:00:00 2001 From: emirpasic Date: Thu, 20 Sep 2018 23:55:51 +0200 Subject: [PATCH] - fix comments --- lists/arraylist/arraylist.go | 2 +- lists/doublylinkedlist/doublylinkedlist.go | 2 +- lists/singlylinkedlist/singlylinkedlist.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) {