From 00b00e64f79df36eccda0dec50f8f7a826ac1481 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Sat, 12 Sep 2020 06:58:19 +1000 Subject: [PATCH] docs: Fix simple typo, garanteed -> guaranteed There is a small typo in rich/_ratio.py. Should read `guaranteed` rather than `garanteed`. --- rich/_ratio.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rich/_ratio.py b/rich/_ratio.py index bf0e05d6..4d9010d4 100644 --- a/rich/_ratio.py +++ b/rich/_ratio.py @@ -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)]