summaryrefslogtreecommitdiffstats
path: root/Doc/library/string.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/library/string.rst')
-rw-r--r--Doc/library/string.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 2e444ad..5867a5a 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -218,6 +218,7 @@ does an index lookup using :func:`__getitem__`.
Some simple format string examples::
"First, thou shalt count to {0}" # References first positional argument
+ "Bring me a {}" # Implicitly references the first positional argument
"My quest is {name}" # References keyword argument 'name'
"Weight in tons {0.weight}" # 'weight' attribute of first positional arg
"Units destroyed: {players[0]}" # First element of keyword argument 'players'.