Merge pull request #278 from xBlaz3kx/fix/typo
fix: comment typo(s)
diff --git a/lists/doublylinkedlist/doublylinkedlist.go b/lists/doublylinkedlist/doublylinkedlist.go
index 6a34e9d..dcbd0e5 100644
--- a/lists/doublylinkedlist/doublylinkedlist.go
+++ b/lists/doublylinkedlist/doublylinkedlist.go
@@ -88,7 +88,7 @@
return t, false
}
- // determine traveral direction, last to first or first to last
+ // determine traversal direction, last to first or first to last
if list.size-index < index {
element := list.last
for e := list.size - 1; e != index; e, element = e-1, element.prev {
@@ -209,7 +209,7 @@
list.last = nil
}
-// Sort sorts values (in-place) using.
+// Sort sorts values (in-place) using a Comparator.
func (list *List[T]) Sort(comparator utils.Comparator[T]) {
if list.size < 2 {