Skip to content

Commit b922f2d

Browse files
committed
Chore: clean up comments
1 parent 1cdb880 commit b922f2d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/data-structures/circular-doubly-linked-list/circular-doubly-linked-list.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -459,10 +459,9 @@ class CircularDoublyLinkedList {
459459
let i = 0;
460460

461461
/*
462-
* Traverse the list, keeping track of the previous position so
463-
* that we can remove the node once it's found. The loop is exited
464-
* when either the start of the list is encountered or `i` is no
465-
* longer less than `index` (meaning we have found the node to remove).
462+
* Traverse the list and exit the loop when either the start of the
463+
* list is encountered or `i` is no longer less than `index` (meaning
464+
* we have found the node to remove).
466465
*/
467466
do {
468467

0 commit comments

Comments
 (0)