Skip to content

Commit 1d83d5a

Browse files
authored
Merge pull request #278 from xBlaz3kx/fix/typo
fix: comment typo(s)
2 parents 8323d02 + 67069ef commit 1d83d5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lists/doublylinkedlist/doublylinkedlist.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (list *List[T]) Get(index int) (T, bool) {
8888
return t, false
8989
}
9090

91-
// determine traveral direction, last to first or first to last
91+
// determine traversal direction, last to first or first to last
9292
if list.size-index < index {
9393
element := list.last
9494
for e := list.size - 1; e != index; e, element = e-1, element.prev {
@@ -209,7 +209,7 @@ func (list *List[T]) Clear() {
209209
list.last = nil
210210
}
211211

212-
// Sort sorts values (in-place) using.
212+
// Sort sorts values (in-place) using a Comparator.
213213
func (list *List[T]) Sort(comparator utils.Comparator[T]) {
214214

215215
if list.size < 2 {

0 commit comments

Comments
 (0)