Merge pull request #276 from timgates42/bugfix_typo_guaranteed

docs: Fix simple typo, garanteed -> guaranteed
This commit is contained in:
Will McGugan 2020-09-11 22:13:02 +01:00 committed by GitHub
commit 4351e7c251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ def ratio_reduce(
values (List[int]): List of values
Returns:
List[int]: A list of integers garanteed to sum to total.
List[int]: A list of integers guaranteed to sum to total.
"""
ratios = [ratio if _max else 0 for ratio, _max in zip(ratios, maximums)]
total_ratio = sum(ratios)
@ -45,7 +45,7 @@ def ratio_distribute(
minimums (List[int]): List of minimum values for each slot.
Returns:
List[int]: A list of integers garanteed to sum to total.
List[int]: A list of integers guaranteed to sum to total.
"""
if minimums:
ratios = [ratio if _min else 0 for ratio, _min in zip(ratios, minimums)]