]> granicus.if.org Git - python/commitdiff
Add token markup.
authorGeorg Brandl <georg@python.org>
Mon, 16 Mar 2009 19:42:03 +0000 (19:42 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 16 Mar 2009 19:42:03 +0000 (19:42 +0000)
Doc/library/string.rst

index 3d1a3e8b43071d6fe6fade2f4c5df713f26becbd..4c3be4f20eb6b3c3b2f6cb46a510b9332b791b88 100644 (file)
@@ -221,7 +221,7 @@ The grammar for a replacement field is as follows:
 
    .. productionlist:: sf
       replacement_field: "{" `field_name` ["!" `conversion`] [":" `format_spec`] "}"
-      field_name: (`identifier` | `integer`) ("." `attribute_name` | "[" element_index "]")*
+      field_name: (`identifier` | `integer`) ("." `attribute_name` | "[" `element_index` "]")*
       attribute_name: `identifier`
       element_index: `integer`
       conversion: "r" | "s"