Fix comment in re
This commit is contained in:
parent
b9e02b1efc
commit
d620f566b2
1 changed files with 2 additions and 2 deletions
|
|
@ -146,8 +146,8 @@ proc findBounds*(s: string, pattern: Regex,
|
|||
|
||||
proc findBounds*(s: string, pattern: Regex,
|
||||
start = 0): tuple[first, last: int] =
|
||||
## returns the starting position of `pattern` in `s`. If it does not
|
||||
## match, ``(-1,0)`` is returned.
|
||||
## returns the starting position and end position of ``pattern`` in ``s``.
|
||||
## If it does not match, ``(-1,0)`` is returned.
|
||||
var
|
||||
rtarray = initRtArray[cint](3)
|
||||
rawMatches = rtarray.getRawData
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue