Skip to content

Commit 76a61b7

Browse files
Update datastructures/linked_lists/linked_list.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent d3bad81 commit 76a61b7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

datastructures/linked_lists/linked_list.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,7 @@ def delete_node_at_position(self, position: int):
272272
:param position: Position of node to delete
273273
"""
274274
if not 0 <= position <= len(self) - 1:
275-
raise ValueError(f"Position ${position} out of bounds")
276-
275+
raise ValueError(f"Position {position} out of bounds")
277276
if self.head is None:
278277
return None
279278

0 commit comments

Comments
 (0)