]> granicus.if.org Git - python/commitdiff
Fix docstring bug
authorRaymond Hettinger <python@rcn.com>
Thu, 8 Feb 2007 01:37:18 +0000 (01:37 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 8 Feb 2007 01:37:18 +0000 (01:37 +0000)
Lib/decimal.py

index 6dc7398d609c39f273de7557bfaf166336ceb273..2b9bc75a35a6577c1e09b5e6c78a10d395af1534 100644 (file)
@@ -487,7 +487,7 @@ def localcontext(ctx=None):
     28
     >>> with localcontext():
     ...     ctx = getcontext()
-    ...     ctx.prec() += 2
+    ...     ctx.prec += 2
     ...     print ctx.prec
     ...
     30