Skip to content

Commit 9ea690e

Browse files
Improve grammar in linear_search docstring (#14081)
* Improve grammar in linear_search docstring Improved wording in the linear search docstring for better clarity. No code logic changed. * Update linear_search.py * Update linear_search.py --------- Co-authored-by: Maxim Smolskiy <mithridatus@mail.ru>
1 parent 7af5aba commit 9ea690e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

searches/linear_search.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
This is pure Python implementation of linear search algorithm
2+
This is a pure Python implementation of the linear search algorithm.
33
44
For doctests run following command:
55
python3 -m doctest -v linear_search.py
@@ -12,8 +12,8 @@
1212
def linear_search(sequence: list, target: int) -> int:
1313
"""A pure Python implementation of a linear search algorithm
1414
15-
:param sequence: a collection with comparable items (as sorted items not required
16-
in Linear Search)
15+
:param sequence: a collection with comparable items (sorting is not required for
16+
linear search)
1717
:param target: item value to search
1818
:return: index of found item or -1 if item is not found
1919

0 commit comments

Comments
 (0)