diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 9352666a0cf..731484813a0 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: + conversion: "r" | "s" format_spec: