Skip to content

Commit 98646de

Browse files
committed
fix: varialble name changes
1 parent 59abeb1 commit 98646de

File tree

1 file changed

+3
-3
lines changed
  • src/_DataStructures_/DoublyLinkedList

1 file changed

+3
-3
lines changed

src/_DataStructures_/DoublyLinkedList/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ class DoublyLinkedList {
5555

5656
display() {
5757
let address = this.head.next;
58-
let addresses = []
58+
const elements = [];
5959
while (address !== this.tail) {
60-
addresses.push(address.data)
60+
elements.push(address.data);
6161
address = address.next;
6262
}
63-
return addresses
63+
return elements;
6464
}
6565
}
6666

0 commit comments

Comments
 (0)