"Fixed typo in class name in docstrings"

This commit is contained in:
mjk22071998 2024-10-01 14:34:07 +05:00
parent 5535759e99
commit cb0c3a33b6

View File

@ -45,7 +45,7 @@ class SortedLinkedList:
def __init__(self) -> None: def __init__(self) -> None:
""" """
Create and initialize LinkedList class instance. Create and initialize LinkedList class instance.
>>> linked_list = LinkedList() >>> linked_list = SortedLinkedList()
>>> linked_list.head is None >>> linked_list.head is None
True True
""" """
@ -226,7 +226,7 @@ class SortedLinkedList:
Doctests Doctests
>>> linkedList=SortedLinkedListtt() >>> linkedList=SortedLinkedList()
>>> linkedList.length() >>> linkedList.length()
0 0
>>> linkedList.insert(32) >>> linkedList.insert(32)