Skip to content

Commit 0bb6beb

Browse files
authored
Fix example in bubble_sort_recursive docstring
bubble_sort_recursive doctstring used bubble_sort_iterative on one of the lines. changed to bubble_sort_recursive
1 parent e2a78d4 commit 0bb6beb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sorts/bubble_sort.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def bubble_sort_recursive(collection: list[Any]) -> list[Any]:
6363
Examples:
6464
>>> bubble_sort_recursive([0, 5, 2, 3, 2])
6565
[0, 2, 2, 3, 5]
66-
>>> bubble_sort_iterative([])
66+
>>> bubble_sort_recursive([])
6767
[]
6868
>>> bubble_sort_recursive([-2, -45, -5])
6969
[-45, -5, -2]

0 commit comments

Comments
 (0)