diff --git a/Lib/fractions.py b/Lib/fractions.py index bc7b200ea72..27b27f40ffb 100644 --- a/Lib/fractions.py +++ b/Lib/fractions.py @@ -162,8 +162,8 @@ def limit_denominator(self, max_denominator=1000000): Fraction(22, 7) >>> Fraction('3.141592653589793').limit_denominator(100) Fraction(311, 99) - >>> Fraction(1234, 5678).limit_denominator(10000) - Fraction(1234, 5678) + >>> Fraction(4321, 8765).limit_denominator(10000) + Fraction(4321, 8765) """ # Algorithm notes: For any real number x, define a *best upper