summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/string.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 9352666..7314848 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -226,7 +226,8 @@ The grammar for a replacement field is as follows:
field_name: arg_name ("." `attribute_name` | "[" `element_index` "]")*
arg_name: (`identifier` | `integer`)?
attribute_name: `identifier`
- element_index: `integer`
+ element_index: `integer` | `index_string`
+ index_string: <any source character except "]"> +
conversion: "r" | "s"
format_spec: <described in the next section>