]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
fix incorrect example
authorBenjamin Peterson <benjamin@python.org>
Sat, 13 Dec 2008 04:02:20 +0000 (04:02 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 13 Dec 2008 04:02:20 +0000 (04:02 +0000)
Doc/whatsnew/2.6.rst

index 96b254ce0d1efa538d14a2b3fd4c2c7fd49b1654..6d0d4224d913e2224adac9c7be0e23ba7a58e36d 100644 (file)
@@ -734,7 +734,7 @@ The formatting template uses curly brackets (`{`, `}`) as special characters::
 
 Curly brackets can be escaped by doubling them::
 
-     >>> format("Empty dict: {{}}")
+     >>> "Empty dict: {{}}".format()
      "Empty dict: {}"
 
 Field names can be integers indicating positional arguments, such as