Commit f33d01d3 authored by Georg Brandl's avatar Georg Brandl

bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation

parent 7208af47
......@@ -693,7 +693,7 @@ here.
Return the square root to full precision.
\end{methoddesc}
\begin{methoddesc}{substract}{x, y}
\begin{methoddesc}{subtract}{x, y}
Return the difference between \var{x} and \var{y}.
\end{methoddesc}
......
......@@ -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")
......
......@@ -209,7 +209,7 @@ Highest Operator Comment
+x, -x, ~x Unary operators
x**y Power
x*y x/y x%y x//y mult, division, modulo, floor division
x+y x-y addition, substraction
x+y x-y addition, subtraction
x<<y x>>y Bit shifting
x&y Bitwise and
x^y Bitwise exclusive or
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment