Skip to content

Commit 27f1ae4

Browse files
committed
fix: update logger message in DoublyLinkedList constructor to include head initialization
1 parent 4160a21 commit 27f1ae4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/dataStructures/DoublyLinkedList.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class ListNode<T = any> {
1313
export default class DoublyLinkedList<T = any> {
1414
private readonly logger = new Logger();
1515

16+
private readonly head: ListNode<T> | null = null;
17+
1618
constructor() {
17-
this.logger.log("DoublyLinkedList created");
19+
this.logger.log("DoublyLinkedList created" + this.head);
1820
}
1921
}

0 commit comments

Comments
 (0)