8000 Merge pull request #9 from Prasang-money/patch-1 · shescloud/practice-python@ab1cbe1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ab1cbe1

Browse files
authored
Merge pull request jwasham#9 from Prasang-money/patch-1
Update linked_list.py
2 parents 593b735 + 083ce97 commit ab1cbe1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

linked_lists/linked_list.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def delete(self, value):
5252
prev.set_next(current.get_next())
5353
else:
5454
self.head_ = current.get_next()
55-
prev = current
55+
else
56+
prev = current
5657
current = current.get_next()
5758

5859
# Pushes an item on the front of the list.

0 commit comments

Comments
 (0)
0