mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation
This commit is contained in:
parent
7208af47f8
commit
f33d01d304
3 changed files with 3 additions and 3 deletions
|
@ -2755,7 +2755,7 @@ class Context(object):
|
|||
return a.sqrt(context=self)
|
||||
|
||||
def subtract(self, a, b):
|
||||
"""Return the sum of the two operands.
|
||||
"""Return the difference between the two operands.
|
||||
|
||||
>>> ExtendedContext.subtract(Decimal('1.3'), Decimal('1.07'))
|
||||
Decimal("0.23")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue