Skip to content

Commit bc810e9

Browse files
authored
Fix return type description in bubble_sort.py
Better (clearer, standard phrasing): :return: the same collection ordered in ascending order
1 parent 3c88735 commit bc810e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sorts/bubble_sort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ def bubble_sort_iterative(collection: list[Any]) -> list[Any]:
66
77
:param collection: some mutable ordered collection with heterogeneous
88
comparable items inside
9-
:return: the same collection ordered by ascending
9+
:return: the same collection ordered in ascending order
10+
1011
1112
Examples:
1213
>>> bubble_sort_iterative([0, 5, 2, 3, 2])

0 commit comments

Comments
 (0)