docs/ure: Fix match.group signature to indicate index param is required.

This commit is contained in:
Yonatan Goldschmidt 2019-02-07 23:48:34 +02:00 committed by Damien George
parent b546e4b7e9
commit a0d60c574a

View File

@ -175,7 +175,7 @@ Match objects
Match objects as returned by `match()` and `search()` methods, and passed Match objects as returned by `match()` and `search()` methods, and passed
to the replacement function in `sub()`. to the replacement function in `sub()`.
.. method:: match.group([index]) .. method:: match.group(index)
Return matching (sub)string. *index* is 0 for entire match, Return matching (sub)string. *index* is 0 for entire match,
1 and above for each capturing group. Only numeric groups are supported. 1 and above for each capturing group. Only numeric groups are supported.