Skip to content

Commit 266e5fe

Browse files
Update doubly_linked_list_two.py
1 parent d6d089a commit 266e5fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data_structures/linked_list/doubly_linked_list_two.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,8 @@ def create_linked_list() -> None:
244244
>>> linked_list.insert_at_position(position=1, value=10)
245245
>>> linked_list
246246
LinkedList(
247-
head=Node(data=10, previous=None, next=None), tail=Node(data=10, previous=None, next=None))
247+
head=Node(data=10, previous=None, next=None),
248+
tail=Node(data=10, previous=None, next=None))
248249
>>> str(linked_list)
249250
'10'
250251
>>> linked_list.insert_at_position(position=2, value=20)

0 commit comments

Comments
 (0)