mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
Update find_min.py (#1627)
Line 5: :return: max number in list "max" must be "min"
This commit is contained in:
parent
b9bff8f3a7
commit
d385472c6f
@ -2,7 +2,7 @@ def find_min(nums):
|
||||
"""
|
||||
Find Minimum Number in a List
|
||||
:param nums: contains elements
|
||||
:return: max number in list
|
||||
:return: min number in list
|
||||
|
||||
>>> for nums in ([3, 2, 1], [-3, -2, -1], [3, -3, 0], [3.0, 3.1, 2.9]):
|
||||
... find_min(nums) == min(nums)
|
||||
|
Loading…
Reference in New Issue
Block a user