diff options
author | Georg Brandl <georg@python.org> | 2005-08-22 19:35:18 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-22 19:35:18 (GMT) |
commit | f33d01d304c349a7f555779c7c99930f1203adb7 (patch) | |
tree | e13221ec9e4f3ad250155945963ca4f7785cf341 | |
parent | 7208af47f8b1a34330194709e55e4ef17560cf6a (diff) | |
download | cpython-f33d01d304c349a7f555779c7c99930f1203adb7.zip cpython-f33d01d304c349a7f555779c7c99930f1203adb7.tar.gz cpython-f33d01d304c349a7f555779c7c99930f1203adb7.tar.bz2 |
bug [ 1266296 ] Mistakes in decimal.Context.subtract documentation
-rw-r--r-- | Doc/lib/libdecimal.tex | 2 | ||||
-rw-r--r-- | Lib/decimal.py | 2 | ||||
-rw-r--r-- | Misc/cheatsheet | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Doc/lib/libdecimal.tex b/Doc/lib/libdecimal.tex index bcd5b2b..c11ad85 100644 --- a/Doc/lib/libdecimal.tex +++ b/Doc/lib/libdecimal.tex @@ -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} diff --git a/Lib/decimal.py b/Lib/decimal.py index 1e5b291..677d26b 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -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") diff --git a/Misc/cheatsheet b/Misc/cheatsheet index 071f13d..718c77b 100644 --- a/Misc/cheatsheet +++ b/Misc/cheatsheet @@ -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 |