Skip to content

Commit b2f610c

Browse files
bekbayevsedatguzelsemme
authored andcommitted
Fix linear_search docstring return value (TheAlgorithms#8644)
1 parent bd41df9 commit b2f610c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: searches/linear_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def linear_search(sequence: list, target: int) -> int:
1515
:param sequence: a collection with comparable items (as sorted items not required
1616
in Linear Search)
1717
:param target: item value to search
18-
:return: index of found item or None if item is not found
18+
:return: index of found item or -1 if item is not found
1919
2020
Examples:
2121
>>> linear_search([0, 5, 7, 10, 15], 0)

0 commit comments

Comments
 (0)