Skip to content

Commit 9a73b0a

Browse files
committed
"Fixed typo in class name and added quotes to __repr__ output"
1 parent c290421 commit 9a73b0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_structures/linked_list/sorted_linked_list.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def __repr__(self) -> str:
6363
>>> linkedList.insert(23)
6464
>>> linkedList.insert(72)
6565
>>> linkedList.__repr__()
66-
2, 12, 21, 23, 72
66+
'2, 12, 21, 23, 72'
6767
"""
6868
nodes = []
6969
temp: Node | None = self.head
@@ -317,7 +317,7 @@ def merge(self, other_list: SortedLinkedList) -> None:
317317
318318
Doctests
319319
320-
>>> linkedList=SortedLinkedListt()
320+
>>> linkedList=SortedLinkedList()
321321
>>> linkedList.insert(32)
322322
>>> linkedList.insert(57)
323323
>>> linkedList.insert(45)

0 commit comments

Comments
 (0)