summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2014-04-14 11:53:33 (GMT)
committerEric V. Smith <eric@trueblade.com>2014-04-14 11:53:33 (GMT)
commitae04491fd0952b2254917e76ed6a85a0921f779e (patch)
tree6d69002c7541fb9f6dc125547c362760204750a9
parentad8d142c0f2ccae23e543b5e4b382f485c2151d3 (diff)
parent04d8a245f162b33e6c861ba0869918d9262be63e (diff)
downloadcpython-ae04491fd0952b2254917e76ed6a85a0921f779e.zip
cpython-ae04491fd0952b2254917e76ed6a85a0921f779e.tar.gz
cpython-ae04491fd0952b2254917e76ed6a85a0921f779e.tar.bz2
Merge 3.4: Fix faq example with division.
-rw-r--r--Doc/faq/programming.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/faq/programming.rst b/Doc/faq/programming.rst
index 9f49ba8..8dcaa3a 100644
--- a/Doc/faq/programming.rst
+++ b/Doc/faq/programming.rst
@@ -732,7 +732,7 @@ To convert, e.g., the number 144 to the string '144', use the built-in type
constructor :func:`str`. If you want a hexadecimal or octal representation, use
the built-in functions :func:`hex` or :func:`oct`. For fancy formatting, see
the :ref:`string-formatting` section, e.g. ``"{:04d}".format(144)`` yields
-``'0144'`` and ``"{:.3f}".format(1/3)`` yields ``'0.333'``.
+``'0144'`` and ``"{:.3f}".format(1.0/3.0)`` yields ``'0.333'``.
How do I modify a string in place?