Skip to content

Commit

Permalink
fix: update logger message in DoublyLinkedList constructor to include…
Browse files Browse the repository at this point in the history
… head initialization
  • Loading branch information
gabriel-logan committed Nov 6, 2024
1 parent 4160a21 commit 27f1ae4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/dataStructures/DoublyLinkedList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ class ListNode<T = any> {
export default class DoublyLinkedList<T = any> {
private readonly logger = new Logger();

private readonly head: ListNode<T> | null = null;

constructor() {
this.logger.log("DoublyLinkedList created");
this.logger.log("DoublyLinkedList created" + this.head);
}
}

0 comments on commit 27f1ae4

Please sign in to comment.